Does pega robotics have features such as running PowerShell directly?
I was looking for something with such a function in the ToolBox settings, but I couldn’t find it.
Is there no choice but to set it with Windows Adapter?
@ShunsukeM6155 If you have your script saved as a PS1 file, you can run it via the Process.Start method. Here is a screenshot and sample project from 22.1. If you are using 19.1, you can add this method to your Toolbox. It is a static method from the Global Assembly Cache in the MSCORLIB assembly.
PowerShellExample.zip (3.55 KB)
Thank you for your answer. I would like to check it using a sample.
@ThomasSasnett In some instances, you might need to add the following arguments to Process.Start.
-NoProfile -ExecutionPolicy ByPass -File “C:\Temp\RenameFile.ps1”
The NoProfile argument prevents loading your default Powershell profile. The ExecutionPolicy of ByPass allows the script to be run by your automation and bypasses any policy you may have on script execution.
