github.com/brad-jones/winsudo (go): Package winsudo is a sudo "like" framework for dealing with Windows UAC. credit: https://gist.github.com/jerblack/d0eb182cc5a1c1d92d92a4c4fcc416c6  I later came across this PowerShell script: https://github.com/lukesampson/psutils/blob/master/sudo.ps1  I even tried to use the FreeConsole() & AttachConsole(pid) methods from kernel32.dll but I couldn't make it work in the same way as the PowerShell, hence this gRPC approach.  Also intresting: https://stackoverflow.com/questions/62759757  I guess the advantage of using this over the PowerShell script is the performance / latency. Starting PowerShell isn't exactly fast. Maybe one day I'll do some benchmarks.  This also allows you to run any arbitrary go code in an elevated environment so thats something I guess.
Keywords: go|sudo|uac|windows