diff --git a/src/scripts/Invoke-DebloatSoftware.ps1 b/src/scripts/Invoke-DebloatSoftware.ps1 index 3fd3c0e6..b54440b6 100644 --- a/src/scripts/Invoke-DebloatSoftware.ps1 +++ b/src/scripts/Invoke-DebloatSoftware.ps1 @@ -13,9 +13,9 @@ function Invoke-DebloatSoftware() { If (!$Revert) { $AdwCleanerDl = "https://downloads.malwarebytes.com/file/adwcleaner" - $AdwCleanerOutput = (Request-FileDownload -FileURI $AdwCleanerDl -OutputFile "adwcleaner.exe")[-1] + [String] $AdwCleanerOutput = (Request-FileDownload -FileURI $AdwCleanerDl -OutputFile "adwcleaner.exe") Write-Status -Types "+" -Status "Running MalwareBytes AdwCleaner scanner..." - Start-Process -FilePath "$AdwCleanerOutput" -ArgumentList '/eula', '/clean', '/noreboot' -Wait + Start-Process -FilePath "$AdwCleanerOutput" -ArgumentList "/eula", "/clean", "/noreboot" -Wait Remove-ItemVerified $AdwCleanerOutput -Force }