If you have opened a Powershell window and you need to perform a task that needs administrator elevation, you can run this command, which will open a new elevated Powershell window:

Elevate Powershell window