Build HEW workspace without opening HEW?

Hi guys, I'm doing an automated build which intends to build a HEW workspace with command line. What I'm doing is like below,


This command will open HEW and run the "Build All" command. (I want it to quit HEW after building, somehow it fails...)

I'm wondering if there is any way to build the workspace on background WITHOUT opening HEW, in this way, the whole automated build process will be more ideal.

Thanks in advance.