So I have created a workflow to call an external powershell script on a powershell host. When I run the script manually it works just fine, but when I run it via Orchestrator I get this error:
Connect-VIServer Cannot complete login due to an incorrect user name or password
This makes no sense to me, the Connect-VIServer command is embedded in the powershell script and works when I run the PS1 file directly. Any help would be appreciated.