You need to run two instances of PowerShell, one in Admistrator mode and another in regular mode.
In regular PowerShell:
NOTE: Remove
-AllowPrereleasecommand if it doesn't work.
PowerShellGet\Install-Module posh-git -Scope CurrentUser -AllowPrerelease -ForceThen run
PowerShellGet\Update-Module posh-git