We're on day 7 trying to get the PowerShell script task type to work after upgrading to 8.3.4. Initially we found that the executionPolicy was not set to Unrestricted. We corrected that and now I can run my script in a PS1 file from PowerShell but it will not execute from VisualCron.
The error is as per below. I did notice that the path to the TaskPowerShell.exe file is INCORRECT, it should be D:\Program Files\Client\VisualCron\PowerShell\TaskPowerShell.exe however I'm not sure where in the software the path to this exe is stored. Can anyone help and I can try fixing that to see if that resolves the issue?
ERROR:
ExecuteProcess("D:\Program Files\Client\VisualCron\\PowerShell\TaskPowerShell.exe" 82)->Unhandled execution error: System.TypeLoadException: Could not load type 'System.Management.Automation.Runspaces.WSManConnectionInfo' from assembly 'System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
at TaskPowerShell.PowerShellTaskClass.Run(ProcessPowerShellTaskInfoClass ti, StringBuilder& sbStandardOut, StringBuilder& sbStandardError, Boolean& bolResult)
at dUtPYORi17ijmNNndt.ULQ6EH7NAE6DFp6YS7.nVBckLHfQ(String[] )