When the -s flag is used to pass in a shell to use, oneshot parses the path as having double slashes. This then leads to a 'file not found' error. example: C:\Windows\System32\WindowsPowerShell\v1\powershell.exe -> C:\\Windows\\System32\\WindowsPowerShell\\v1\\powershell.exe