Assistance Required: Executing PowerShell Script via Appian Robotic Task

Certified Senior Developer

Hi All,

We are currently facing a technical challenge while trying to execute a PowerShell script (.ps1 file) on a robot's virtual machine using Appian robotic task. The script is stored in a shared drive location that the robotic task has access to.

Our goal is to run the script using the “Run with PowerShell” option. However, we are unable to identify any built-in robotic action within Appian RPA that allows us to execute a PowerShell script directly on the robot’s VM.

If you are aware of any solution, workaround, or best practice to achieve this, your guidance would be greatly appreciated.

Thank you in advance for your support.

  Discussion posts and replies are publicly visible

Parents
  • Hi  

    Currently, the recommended workaround for this type of execution is to run the command using the Windows "Run" dialog. This can be implemented with a three-action subtask:

    1. Press keyboard shortcuts: Win + R (to open the Run dialog)


     
    2. Type Text: Type the full command, including any parameters, in this case it could be "powershell -ExecutionPolicy Bypass -File "C:\myFolder\script.ps1"
     
    3. Press keyboard shortcuts: Enter
Reply
  • Hi  

    Currently, the recommended workaround for this type of execution is to run the command using the Windows "Run" dialog. This can be implemented with a three-action subtask:

    1. Press keyboard shortcuts: Win + R (to open the Run dialog)


     
    2. Type Text: Type the full command, including any parameters, in this case it could be "powershell -ExecutionPolicy Bypass -File "C:\myFolder\script.ps1"
     
    3. Press keyboard shortcuts: Enter
Children
No Data