Skip to content

Run OO Shutup 10

functions/public/Invoke-WPFOOSU.ps1
 1function Invoke-WPFOOSU {
 2    <#
 3    .SYNOPSIS
 4        Downloads and runs OO Shutup 10
 5    #>
 6    try {
 7        $OOSU_filepath = "$ENV:temp\OOSU10.exe"
 8        $Initial_ProgressPreference = $ProgressPreference
 9        $ProgressPreference = "SilentlyContinue" # Disables the Progress Bar to drasticly speed up Invoke-WebRequest
10        Invoke-WebRequest -Uri "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -OutFile $OOSU_filepath
11        Write-Host "Starting OO Shutup 10 ..."
12        Start-Process $OOSU_filepath
13    } catch {
14        Write-Host "Error Downloading and Running OO Shutup 10" -ForegroundColor Red
15    }
16    finally {
17        $ProgressPreference = $Initial_ProgressPreference
18    }
19}