# Start the process with elevated privileges $cred = Import-Clixml -Path "AdminCredential.xml" Write-Host "Executing PowerShell (ISE) as the user: $($cred.UserName)" Start-Process -FilePath "PowerShell_ISE.exe" -Credential $cred