rannn505 / child-shell

Node.js bindings 🔗 for shell
http://rannn505.github.io/child-shell/
MIT License
299 stars 71 forks source link

Possible to run PsExec command? #113

Open Cliff-R-K opened 4 years ago

Cliff-R-K commented 4 years ago

I need to run this command:

C:\Program\ Files\PSTools\PsExec.exe -WindowStyle Hidden -s -i \\<hostname> Powershell -f C:\Dev\Scripts\askForPermission.ps1

I tried escaping all slashes but could not get it to work. Is this possible?