Launch Powershell script with variables from uipath



Is it possible to launch a premade powershell script from uipath and use variables created in uipath?
Ive been looking for a solution, but all I find is invoke command. But I dont see how to launch a script from there.

Thanks for helping me!


Yes…if you search the forum you should get examples of using parameters. Come back if can’t find anything.




I found this one:

But it doesn’t look like it is possible to use a premade ps1 file with “invoke powershell” and pass a variable from uipath to it.


Yes you can - I think you need to include the parameters at the top of the script. Have a look at this stack overflow page as an example…