sudo for Windows

In Windows, with the use of powershell, at some point in time you will feel the need to elevate the privileges while in the same terminal, akin to sudo in Linux. Two options are mentioned below.

Using runas verb as below. This launches a new window.

start-process PowerShell -verb runas

Using gsudo from here, which is my personal favorite. Install it using below command.

winget install gerardog.gsudo

Once installed it can be used like below:

gsudo notepad