Can we trigger a "Script" from UiPath

I have a Powershell Script written for a purpose. Is there an activity in UiPath that can “trigger” this Script?

Hi @prasadt,

Please can you try this activity :slight_smile:

“Invoke Power Shell” - I hope that helps
Warm Regards,
Prashant Singh

I tried a sample “Hello World!” command and I’m below error. Can you help me with the error.



enable the IsScript option from properties.



I have enabled “IsScript” and then done some “Set-ExecutionPolicy” changes on Powershell, Now I’m getting the above error. The PS Command that i’m trying is - ‘Write-Host “Hello, World!”’

Hi ,how did you resolve this error ?