I love using gsudo[0] for this. It doesn't support running as TrustedInstaller (AFAIK), but when I run into a command that requires elevated permissions, I just prepend `sudo` at the beginning, and it elevates the current shell (without a new window) and lets me run the command.<p><pre><code> PS> choco upgrade deno
Chocolatey detected you are not running from an elevated command shell
^C
PS> sudo choco upgrade deno
Chocolatey v0.10.15
Upgrading the following packages:
deno
</code></pre>
[0]: <a href="https://github.com/gerardog/gsudo" rel="nofollow">https://github.com/gerardog/gsudo</a>