Set-ExecutionPolicy RemoteSigned
$ProgressPreference = "SilentlyContinue"
$Link = "https://go.microsoft.com/fwlink/?LinkID=799445"
$Path = "C:\Users\Public\Downloads"
$File = "Windows10Upgrade9252.exe"
if (Test-Path $Path\$File) {
Remove-Item $Path\$File
}
Invoke-WebRequest -Uri $Link -OutFile $Path\$File -UseBasicParsing
Start-Process -FilePath $Path\$File -ArgumentList "/quietinstall /skipeula /auto upgrade /copylogs $Path"