[scripting] getting external program output

You should be able to do it using the WScript.Shell object's Exec method. See e.g. this example.