mitmproxy/release/installbuilder/run.ps1

7 lines
258 B
PowerShell

$tool = $args[0]
if (Get-Command wt -ErrorAction SilentlyContinue) {
Start-Process wt -ArgumentList "powershell.exe","-Command","& '$PSScriptRoot\$tool.exe'"
} else {
Start-Process powershell -ArgumentList "-Command","& '$PSScriptRoot\$tool.exe'"
}