diff --git a/Run.bat b/Run.bat index 3815f39..7b88b13 100644 --- a/Run.bat +++ b/Run.bat @@ -24,7 +24,7 @@ set "SCRIPT_PATH=%~dp0Win11Debloat.ps1" if defined wtPath ( call :Log Launching Win11Debloat.ps1 with Windows Terminal... - PowerShell -NoProfile -ExecutionPolicy Bypass -Command "$p='%SCRIPT_PATH:'=''%'; $q=[char]34; Start-Process -FilePath '%wtPath%' -ArgumentList ('PowerShell -NoProfile -ExecutionPolicy Bypass -File ' + $q + $p + $q) -Verb RunAs" >> "%logFile%" || call :Error "PowerShell command failed" + PowerShell -NoProfile -ExecutionPolicy Bypass -Command "$p='%SCRIPT_PATH:'=''%'; $w='%wtPath:'=''%'; $q=[char]34; Start-Process -FilePath $w -ArgumentList ('PowerShell -NoProfile -ExecutionPolicy Bypass -File ' + $q + $p + $q) -Verb RunAs" >> "%logFile%" || call :Error "PowerShell command failed" ) else ( echo Windows Terminal not found, using default PowerShell... call :Log Windows Terminal not found. Using default PowerShell to launch Win11Debloat.ps1...