Launch Powershell script with variables from uipath

powershell

#1

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!


#2

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

image

image


#3

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.


#4

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…