So, this little script will install the Brave browser (latest version).
Website: https://brave.com/
Inspired and URL copied from: https://github.com/tylerlurie/PS-Installers
(Verified working).
Update 2025-03-21:
Click to reveal
Click to hide
Updated the cleanup part to be correct.
Here we go:
$tp = "C:\TempPath"
mkdir $tp
$Url = "https://brave-browser-downloads.s3.brave.com/latest/brave_installer-x64.exe"
$Installer = "brave_installer-x64.exe"
Invoke-WebRequest -Uri $Url -OutFile $tp\$Installer
Start-Process -FilePath $tp\$Installer -ArgumentList "--install --silent --system-level" -Wait
Start-Sleep -Seconds 300
del $tp\$Installer