Won't the runas command (https://docs.microsoft.com/en-us/previous-versions/windows/i...) let you do this - run a command as Administrator without opening another command/powershell prompt?
Works like on linux. Runas and friends are junk.
https://github.com/gerardog/gsudo
Won't the runas command (https://docs.microsoft.com/en-us/previous-versions/windows/i...) let you do this - run a command as Administrator without opening another command/powershell prompt?