Can someone please explain to me why Invoke Powershell and its Parameters and PowerShellVariables make it so maddenlingly difficult to reproduce a simple Powershell command?
please save the powershell script into text document,
read the txt document with read text document activity & pass the output variable to the invoke power shell activity
Hi @Rob. Thank you for your idea. I’ve tried writing the powershell commands to a text file and reading them into the automation as you suggest. It does indeed work. I generally prefer not to have an automation project write to local files because the automation will eventually be deployed to a user’s machine. Then you have to worry about things like access permissions, file path validation, etc.