I have a need to automate running commands in PowerShell. I have used Windows adapter and given powershell.exe with full path in Path property. But i am unable to interrogate anything on it. then given powershell_ise.exe with full path in Path property, now i can able to interrogate the frame. but no test methods are working. Pls find below for the error message when trying to invoke test methods.
You wouldn't automate Powershell via interrogation. Since it is a scripting language, you'd just execute the script you wanted to run using a static method from the Global Assembly Cache (Process.Start).
To add that Static method to your automation; right-click the Toolbox and select Choose Items. Select the "Pega Robot Static Members" tab and choose the "From Global Assembly Cache" radio button. Select the "System" assembly and then select the "Process" node, then the "Start" method and click OK. You can now drag this method to your automation to call your script.
when i was running powershell script manually, it was working fine.. issue was only when running using robotics. so in PS script, i have placed escape characters before quote/special characters.and passed that as arguments.it worked
Posted: 3 years ago
Posted: 11 Mar 2020 10:11 EDT
Pallavi Mandal (Pallavi_Mandal)
Senior Technical Documentation Specialist