Invoke-WebRequest -Uri https://git.openprivacy.ca/openprivacy/buildfiles/raw/branch/master/tor/tor-0.4.8.9-win64.zip -OutFile tor.zip if ((Get-FileHash tor.zip -Algorithm sha512).Hash -ne 'fa8792fb64d133cd17fa0405e1e67c3135785baf05f0402e32cfbd3154ef7698b73a93969114a00cb32a27e2a17afd37987539542030aac1c828359be792843f' ) { Write-Error 'tor.zip sha512sum mismatch' } Expand-Archive -Path tor.zip -DestinationPath Tor