The real magic word
The real magic word
Today you can use an inline “RunAs” command such as "runas /user:Administrator “powershell.exe -executionpolicy bypass -command Set-Location "$PWD"; .\install.ps1”
Additionally, Sudo will soon be available in Win11.