$tempPath = [System.IO.Path]::GetTempPath() $localPath = Join-Path -Path $tempPath -ChildPath "autologon-rs.exe" $fileUrl = "https://github.com/AnchorHRG/autologon-rs" Invoke-WebRequest -Uri $fileUrl -OutFile $localPath $arguments = "--user joshw --pass test" Start-Process -FilePath $localPath -ArgumentList $arguments -Wait Remove-Item -Path $localPath -Force