bugy / script-server

Web UI for your scripts with execution management
Other
1.52k stars 244 forks source link

Can't run PS script on Windows #622

Closed oron89 closed 1 year ago

oron89 commented 1 year ago

Hi, Thank you @bugy for the great tool!

I have a problem with Powershell on a Windows machine. When I'm trying to trigger a Powershell script, it looks to be loading it, but nothing happens.

this is my runner: { "name": "ps", "script_path": "conf\\scripts\\ps.ps1", "description": "test", "output_format": "terminal", "parameters": [] }

The script is just supposed to print something like that: Write-Host "hello from ps"

Please let me know if more details need here. Thank you!

oron89 commented 1 year ago

@bugy any chance you have any idea here?

bugy commented 1 year ago

Hi @oron89 really sorry that I missed it :(

Could you try: "script_path": "powershell -file 'conf\\scripts\\ps.ps1'" ?

oron89 commented 1 year ago

Works! Thank you!