start powershell with admin rights then execute command code example Example: powershell admin privileges Start-Process powershell -Verb runAs