This is not the same sudo you use in *nix systems. It just shares the name.

It is quite tiresome to launch a new instance of the running program with admin privilege.

Install

1
scoop install gsudo

Other installation methods are in the repo: https://github.com/gerardog/gsudo

Usage

Prepend sudo to the command that requires admin provolege. It will launch UAC.

Screenshot of sudo in action. It cannot geenrate ssh keys as a normal user but prepending sudo gets the job done.

It feels surreal