how to run a program as administrator in cmd code example
Example 1: run cmd as administrator command line
powershell -command "start-process cmd -verb runas"
Example 2: how to run cmd run administrator using script
@echo off
break off
title C:\Windows\system32\cmd.exe
cls
:cmd
set /p cmd=C:\Enter Command:
%cmd%
echo.
goto cmd