Powershell : Add upn, proxy and target address to object in active directory

Always have a need to update users attributes in Active Directory.  The most requested for me are

UPN
Proxy address
Target address

Part 1

First create a csv with one column, called Alias and provide the alias in AD

$moveCSV=Import-csv c:\Downloads\users.csv

#set there UPN using the users csv input file
$movecsv | foreach { set-aduser $_.Alias -UserPrincipalName (“{0}@{1}” -f $_.Alias,”here.com”)}

Part 2

Create a csv with two columns, alias and proxy

#set there proxy address using the proxy.csv input file
$movecsv | foreach { Set-ADUser $_.Alias  -add @{‘ProxyAddresses’=@(“SMTP:{0}” -f $_.Proxy)} }

#set there target address to show in address book using the proxy.csv input file
$movecsv | foreach { Set-ADUser $_.Alias  -add @{targetAddress = $_.Proxy}}