Launch elevated processes from a normal console.
The missing sudo for Windows command line.
A one-line command-line tool that launches any program or script with administrator elevation, starting from a normal (non-elevated) console. You stay in your current shell — only the launched process gets the elevation prompt.
RunAdmin "c:\path\to\command.cmd"
Or for a program:
RunAdmin "c:\Program Files\Foo\foo.exe" /arg1 /arg2
UAC pops up, you accept, the target process runs elevated. Your console window stays at normal privileges.
49 small, sharp Windows utilities. All freeware. All by the same author.