$destinationUrl = "https://sharepoint/sites/teamsite/documents"$file = get-childitem "e:\tmp\document.txt"$webclient = New-Object System.Net.WebClient $webclient.UseDefaultCredentials = $true$webclient.UploadFile($destinationUrl + "/" + $file.Name, "PUT", $file.FullName)