I've got a Powershell script that's been running great for over a year. We just upgraded the application that the script interfaces with as well as made some application-related server updates and all of a sudden I'm not getting any log output from the below command:
Start-Process bulkimport.bat -Wait -PassThru -RedirectStandardOutput $LogPath `
-ArgumentList "-user $Username -password $Password -dir $StagingDirInQuotes"
The file at $LogPath is just a zero byte file now. I tried removing "-RedirectStandardOutput $LogPath" and also see no output at the command line. I'm pretty sure the Powershell version has been not been updated. $PSVersionTable.psversion reveals:
Major Minor Build Revision
----- ----- ----- --------
2 0 -1 -1
Any ideas what may be going on? I'd really appreciate your help.
Thanks very much.