Bleachbit-Portable – Download and clean temp files
$datecurrent = get-date -Format MMddyyyyHmmss
$bleachbit_portable_url = “https://url/download/bleachbit-portable.zip”
$ourpath = “C:\absolute\” + $datecurrent + “\temp”
$zip = $ourpath + “\bleachbit-portable.zip”
$exe = Join-Path $ourpath “\bleachbit-portable\bleachbit_console.exe”
New-Item -ItemType Directory -Force -Path $ourpath
Invoke-WebRequest -Uri $bleachbit_portable_url -OutFile $zip
Expand-Archive -LiteralPath $zip -DestinationPath $ourpath
$Params = ” –clean microsoft_edge.cache chromium.cache firefox.cache google_chrome.cache internet_explorer.cache flash.cache java.cache system.tmp system.updates adobe_reader.cache”
$ParsedParams = $Params.Split(” “)
& $exe $ParsedParams