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.

image

image

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.

1 Like

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…

hi @Niels_Frederickx

Check this out
am using PDF extract using invoke power shell

1 Like