@@ -5037,9 +5037,9 @@ function Invoke-WPFShortcut {
50375037 else{
50385038 $shell = "powershell.exe"
50395039 }
5040-
5040+
50415041 $shellArgs = "-ExecutionPolicy Bypass -Command `"Start-Process $shell -verb runas -ArgumentList `'-Command `"irm https://christitus.com/win | iex`"`'"
5042-
5042+
50435043 $DestinationName = "WinUtil.lnk"
50445044
50455045 Invoke-WebRequest -Uri "https://christitus.com/images/logo-full.png" -OutFile "$env:TEMP\cttlogo.png"
@@ -5184,11 +5184,11 @@ function Invoke-WPFTweakPS7{
51845184 Write-Host "Windows Terminal not installed. Skipping Terminal preference"
51855185 return
51865186 }
5187- # Check if the Windows Terminal settings.json file exists and return if not (Prereqisite for the following code)
5187+ # Check if the Windows Terminal settings.json file exists and return if not (Prereqisite for the following code)
51885188 $settingsPath = "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json"
51895189 if (-not (Test-Path -Path $settingsPath)){
51905190 Write-Host "Windows Terminal Settings file not found at $settingsPath"
5191- return
5191+ return
51925192 }
51935193
51945194 Write-Host "Settings file found."
@@ -5203,7 +5203,7 @@ function Invoke-WPFTweakPS7{
52035203 Write-Host "using the name attribute."
52045204 } else {
52055205 Write-Host "No PowerShell 7 profile found in Windows Terminal settings using the name attribute."
5206- }
5206+ }
52075207}
52085208function Invoke-WPFtweaksbutton {
52095209 <#
@@ -5292,7 +5292,7 @@ Function Invoke-WPFUltimatePerformance {
52925292 if ($ultimatePlan) {
52935293 # Extract the GUID of the Ultimate Performance plan
52945294 $ultimatePlanGUID = $ultimatePlan.Line.Split()[3]
5295-
5295+
52965296 # Set a different power plan as active before deleting the Ultimate Performance plan
52975297 $balancedPlanGUID = (powercfg -list | Select-String -Pattern "Balanced").Line.Split()[3]
52985298 powercfg -setactive $balancedPlanGUID
0 commit comments