diff --git a/functions/public/Invoke-WPFtweaksbutton.ps1 b/functions/public/Invoke-WPFtweaksbutton.ps1 index 07a0a89c..580ab0e5 100644 --- a/functions/public/Invoke-WPFtweaksbutton.ps1 +++ b/functions/public/Invoke-WPFtweaksbutton.ps1 @@ -22,13 +22,13 @@ function Invoke-WPFtweaksbutton { return } - Set-WinUtilRestorePoint - Invoke-WPFRunspace -ArgumentList $Tweaks -ScriptBlock { param($Tweaks) $sync.ProcessRunning = $true + Set-WinUtilRestorePoint + Foreach ($tweak in $tweaks){ Invoke-WinUtilTweaks $tweak }