Here we have the current latest version of 7-Zip as an automation script.
Update 2025-03-21:
Click to reveal
Click to hide
Script cleanup, updated the script to take shape like all other scripts.
Also cleanup happens faster now (Previously 5 minutes, now 30 seconds).
Here we go:
$tp = "C:\TempPath"
mkdir $tp
Invoke-WebRequest -Uri https://www.7-zip.org/a/7z2409-x64.msi -OutFile $tp\7z-x64.msi
$Installer = "7z-x64.msi"
Start-Process -FilePath $tp\$Installer -ArgumentList "/q" -Wait
Start-Sleep -Seconds 30
del $tp\$Installer