The command works at a command prompt. I did try with the following: "%comspec% /c dir c:\" and recieve the same error.

I stepped through the code and it stops at the
While Not $oExec.Status Loop line.

Thanks.