Help files

Run PowerShell Script

Description:

This Action executes some custom Powershell Script and retrieves its output into a Variable.

runpowershell.png
Properties:

Powershell Script to run:

Enter here the Powershell code you want to execute. TIP: Within the script, you may include WinAutomation Variables, since they will be evaluated prior to the Powershell code's execution. In the example presented above, please remember to escape any backslash inside the path Variable (%DataDirectory%):

C:\\Windows\\SysWOW64

Store Output into:

Enter the name for the Variable to hold the script's output. A script may write some text to the windows console during its execution. In this case, all the text written by the script is stored into this Variable so that it can be processed by later Actions.

Store Error Output into:

Enter the name for the Variable to hold any errors that may occur during the execution of the Powershell code.