-
-
Save dseeni/7fbe7628cb1a87a09adc6c82794d527c to your computer and use it in GitHub Desktop.
start a process in powershell using lua script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function doStartProcess(programWithParams) | |
| local psCmd = '"powershell.exe -Command "Start-Process cmd " -ArgumentList "/c", "\'' .. programWithParams .. '\'" -Verb RunAs -Wait"' | |
| --print (psCmd) | |
| os.execute(psCmd) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment