The difference certainly could be between PS on your computer and PS components that are part of VC. I would suggest upgrading to the newest version
Also, when you run the job in VC, who are you running it as? Are you adding a credential? If not, it is run as the computer so if you run it in a PS shell as you but running it in VC as your computer, there might be permissions issues
We have a couple dozen PS scripts running from VC that work as they do in standalone PS. I always run as x86 mode and I always have a credential. I just paste the script into VC without using the parameters or commands tabs
Oh, and if you want, change the output to Foreground instead of background, it might add some insight
Edited by user
2024-12-19T16:07:26Z
|
Reason: Not specified