exec Use current thread token to execute command basic vs2019 + net2.0 + c# usage exec.exe "whoami" exec.exe "netstat -ano"