#=======================================================================
#=======================================================================
if ((Get-OSDGather -Property IsWinPE)) {
Write-Warning "$($MyInvocation.MyCommand) cannot be run from WinPE"
#=======================================================================
#=======================================================================
if ((Get-OSDGather -Property IsAdmin) -eq $false) {
Write-Warning "$($MyInvocation.MyCommand) requires Admin Rights ELEVATED"
#=======================================================================
#=======================================================================
if (-NOT (Test-Path "$env:SystemRoot\System32\curl.exe")) {
Write-Warning "$($MyInvocation.MyCommand) could not find $env:SystemRoot\System32\curl.exe"
Write-Warning "Get a newer Windows version!"
#=======================================================================