in reply to Execution of external process does not wait in IIS7/Windows

You are running in a pipe, it is not supposed to wait for the process to finish. The program runs in background, waiting for you to write something to the file handle $R. Use system if you want to wait for it to complete.

Or maybe I mis-read your question?
  • Comment on Re: Execution of external process does not wait in IIS7/Windows