param([string]$Branch = "main") [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072 $resolvedBranch = if ([string]::IsNullOrWhiteSpace($Branch)) { "main" } else { $Branch } $sourceUrl = "https://raw.githubusercontent.com/vaoan/PCSetup/refs/heads/$resolvedBranch/remote-call.ps1?ts=$([DateTimeOffset]::UtcNow.ToUnixTimeMilliseconds())" & ([scriptblock]::Create((Invoke-RestMethod -Uri $sourceUrl -UseBasicParsing))) -Branch $resolvedBranch