change download to invoke-webrequest from system.net.webclient