Try this:
Import-CSV <csv-path> |
ForEach-Object{
$u = $_.user # for use in Catch block if update fails
Try{
Set-CsUserCallingSettings -Identity $_.user -IsForwardingEnabled $true -ForwardingType Immediate -ForwardingTarget $_.ForwardingTarget -ForwardingTargetType SingleTarget ^ -ErrorAction STOP
}
Catch{
Write-Host "Could not make changes to '$_.u'"
$_
}
}
The CSV file should look something like this:
User,ForwardingTarget
******@domain.com,+3.......
Another******@domain.com,+3.......
EDIT: corrected the "Write-Host" to use the variable "$u".