open command prompt as administrator code example
Example 1: run cmd as administrator command line
powershell -command "start-process cmd -verb runas"
Example 2: run command for admin cmd
win + x + a
powershell -command "start-process cmd -verb runas"
win + x + a