Since you're using the name of the user instead of a property that's guaranteed to be unique, you should check to be sure the Get-ADUser returns only a single object.
This may be what you need:
$props = "samaccountname","name","givenname","surname","displayname" # these are the names of the properties you want to export
Import-Csv c:\junk\my.csv |
ForEach-Object{
try{
$u = Get-ADUser -Filter "name -eq '$($_.username)'"
if ($u){
if ($u.count -gt 1){
Throw "Multiple matches for name '$($_.username)"
}
$n = Select-Object -InputObject $u $props
$n.name = 'T' + $n.name
$n # emit the new row
}
}
catch{
# report an unmatched or duplicate name here
}
} | Export-CSV c:\junk\another.csv -NoTypeInformation