It should operate correctly for most people with no changes but I make no guarantees lol
https://pastebin.com/rV0F8Dbe
# Download latest uMod for Rust
Write-Host Determining latest uMod release . . .
$tag = (Invoke-WebRequest https://umod.org/games/rust.json | ConvertFrom-Json)[0].latest_release_version
if (Test-Path -Path temp\uMod$tag.zip) {
Write-Host uMod $tag is already up to date.
} else {
Remove-Item .\temp\*.zip -Force
Write-Host Downloading uMod $tag . . .
Invoke-WebRequest https://umod.org/games/rust/download -Out .\temp\uMod$tag.zip
Write-Host Extracting uMod $tag . . .
Expand-Archive -DestinationPath . .\temp\uMod$tag.zip -Force
}