Powershell – Upload files with power shell

$H = hostname
echo huy > C:\DiskSpace-Alert\$H
$File = "C:\DiskSpace-Alert\$H";
$H = hostname
$ftp = "ftp://ftpuser:[email protected]_server.com/$H";
Write-Host -Object "ftp url: $ftp";
$webclient = New-Object -TypeName System.Net.WebClient;
$uri = New-Object -TypeName System.Uri -ArgumentList $ftp;
Write-Host -Object "Uploading $File...";
$webclient.UploadFile($uri, $File);