Pass a variable from UiPath to Invoke Powershell activity


Hi Team,

How to pass a variable from UiPath to power-shell. Tried importing arguments but it didn’t work.
It would be very helpful if you provide sample xaml file.

Thanks in advance

Launch Powershell script with variables from uipath


just add the argument in the PoweShellVariables and it should work.
Attached an example.

Main.xaml (5.5 KB)



Thanks a lot.