Fork from https://github.com/ecsousa/PSSudo
sudo <arguments>so that elevated PowerShell in ConEmu runs in the same window/tab/console
- When checking for Aliases, use
-ErrorActionso that errors are not detected in
f--k, allowing for
sudo !!fuctionality - executing the last command in elevated mode.
Invoke-ElevatedCommandfor executing an inline script block (that is, it can be executed within a pipeline).