open powershell as administrator code example
Example 1: powershell admin privileges
Start-Process powershell -Verb runAs
Example 2: powershell open cmd
Start-Process -FilePath cmd.exe
Start-Process powershell -Verb runAs
Start-Process -FilePath cmd.exe