Rather make it a batch file that always waits, and returns the output.