Invoke Power Shell - Other latest
Workflow Activities
Last updated Oct 25, 2023

Invoke Power Shell


Executes a PowerShell command with specified input parameters.

Note: Antivirus policies that restrict PowerShell access may prevent the use of PowerShell-related activities. For example, you cannot use Invoke Workflow File and Invoke Power Shell when rule ID 6151 is enabled in McAfee Endpoint Security.



  • Parameters - A dictionary of PowerShell command parameters.
  • CommandText - The PowerShell command that is to be executed.
  • Input: - A collection of PSObjects that are passed to the writer of the pipeline used to execute the command. Can be the output of another InvokePowerShell activity.


  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
  • PowerShellVariables - A dictionary of named objects that represent variables used within the current session of the command. A PowerShell command can retrieve information from IN and In/Out variables and can set Out variables.
  • IsScript - Specifies if the command text is a script.
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

    Note: If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.


  • Output - A collection of TypeArgument objects returned by the execution of the command. Can be used to pipe several InvokePowerShell activities.


  • DisplayName - The display name of the activity.
  • TypeArgument - Sets the type of the output variable.

    Note: When changing the argument type, the content of this activity is deleted.
  • Properties
Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2023 UiPath. All rights reserved.