Scripting compile application in AX 2009

Manually i do it by going to : Administration > Periodic > Compile Application. How can I do this using a script?

You can use startup commands, such as ax32.exe -startupCmd=CompileAll.

Thanks Martin for the reply, but this will compile all application in all aos server that i have including the 2 dev server… i need only to compile the one that resides on my the live server.

You compile code in production? In a cluster?
What exactly are you doing and why? It’s sounds dangerous.