Open ExtendScript Toolkit.
In menu "Help", open the Object Model Viewer.
In "Classes" choose "File".
In "Properties and Methods", choose "execute()" method.
Thanks But how do i specify command line arguments ? is there anyway to prevent the DOS window popping up?
execute() is roughly the equivalent to a double click from within Explorer, scripts and command line utilities will open with console Window.
The "$" helper object has getenv() and setenv() methods that you can use to pass arguments.
An alternative approach would be the platform specific use of VBScript or AppleScript, if your target application supports that. It could also use InDesign's scripting interface to actively ask for further values. The scripting documentation has examples how to invoke scripts cross language.