The second way would look like this:
& myjob.bat 2>&1 >> C:MyLog.txt
Or this:
& myjob.bat 2>&1 | Out-File C:MyLog.txt -Append
The second way would look like this:
& myjob.bat 2>&1 >> C:MyLog.txt
Or this:
& myjob.bat 2>&1 | Out-File C:MyLog.txt -Append