$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'" }