how to run a command with administrator privileges in cmd code example Example: run cmd as administrator command line powershell -command "start-process cmd -verb runas"