diff --git a/bleachbit.ps1 b/bleachbit.ps1 index 34b390d..82728cb 100644 --- a/bleachbit.ps1 +++ b/bleachbit.ps1 @@ -83,7 +83,7 @@ if (-not (Test-Path $exePath)) { # Run the cleanup command Write-Host "Running BleachBit cleanup..." $CleanerArgs = $BleachBitCleaners -join " " -$output = & $exePath --clean $CleanerArgs +$output = Start-Process -FilePath $exePath -ArgumentList "--clean $CleanerArgs" -NoNewWindow -Wait -PassThru -ErrorAction Stop # Output JSON result $result = @{