UiPath Activities

Invoke Power Shell

UiPath.Core.Activities.InvokePowerShell

Executes a PowerShell command with specified input parameters.

Properties

Input

  • 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.

Misc

  • 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

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

Common

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

Updated 4 days ago


Invoke Power Shell


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.