OSUpdate package builder

Hi. I'm trying to automate process of building "Application.GAR" image for my CE7 device. I know I can use OSUpdate package builder application GUI to achieve this task but I'm trying to do this using command line. Does anyone have experience with this process or any sample batch script that I can use?


Thanks in advance.