TABLE OF CONTENTS
1. Activity program name
RCA.Activities.Core.InvokePowerShell
2. Description
Up to Studio version 2.0.2.0:
Quick Access: "Toolbox" > "Invoke" > "Invoke PowerShell"From Studio version 2.0.3.0:
Quick Access: "Toolbox" > "Core" > "Invoke" > "Invoke PowerShell"
This activity allows you to execute PowerShell commands.
Tested on Studio versions: 2.0.4.0, 2.1.0.0
Note: Descriptions and terms may vary depending on the version.
3. Properties
4. How to use
In this section, we’ll walk through how to use the "Invoke PowerShell" activity to open Notepad.
There are two main configuration methods:
Setting the Script Property
Configuring the Parameters Property
Method 1: Using the Script Property
Drag and drop the "Core" > "Invoke" > "Invoke PowerShell" activity from the Toolbox into the Designer panel.
In the Properties panel: Check the "Is Script" property
Enter the following command in the "Command Text" field: "Start-Process -FilePath C:\Windows\System32\notepad.exe"
Execute the workflow by clicking "Home > Start" or pressing F5.
Result: Notepad will launch.
Method 2: Configuring the Parameters Property
Drag and drop the "Core" > "Invoke" > "Invoke PowerShell" activity from the Toolbox into the Designer panel.
In the Properties panel:
Enter the following command in the "Command Text" field: "Start-Process"
Configure the "Parameters" property:
Click the "..." button next to the "Parameters" field.
In the Parameters panel, set the following:
Name: "FilePath"
Value: "C:\Windows\System32\notepad.exe"
Note: The Name must match the option names predefined in PowerShell. For details on the Start-Process command, refer to the official Start-Process (Microsoft) documentation.
Execute the workflow by clicking "Home > Start" or pressing F5.
Result: Notepad will launch.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article