I’m working on a better way to do this, but for now I have a way to “sudo” in Powershell to get Administrator access.
First, using Powershell (as your regular user), create a function:
Function sudoit {Start-Process "powershell" -Verb "runas"}
…next, connect that function to an alias. Again in Powershell:
Set-Alias -Name sudo -Value sudoit
…then, you can use the alias ‘sudo‘. Note that this will open up a new window with Administrator privileges. Not the ideal solution, but the best I’ve found so far.
I have seen a problem where desired changes made, in my case, by other applications (apps) to the Powershell syntax, do not stick. The key, at least for me, is to make changes to the file C:\Users\jeffr\Documents\PowerShell\Microsoft.PowerShell_profile.ps1. Changes here seem to perpetuate through subsequent shell start ups. Now you know.