Why do you use this header:$dc.Headers.Add("user-agent", "Inter Explorer")
$dc.Headers.Add("X-FORMS_BASED_AUTH_ACCEPTED", "f")Why there is "Inter Explorer"Not just 'Internet Explorer'?Why you do not use just:(New-Object System.Net.WebClient).Download...