Something like this should get you started:
$CSV_Path = "C:\Users\asstcl\Documents\PS HW\Accounts2.csv"
$CSV_Out = "C:\temp\HW2.csv"
Import-CSV $CSV_Path |
ForEach-Object {
$u = Get-ADUser -Filter "mail -eq '$($_.emailaddress)'"
if ($u){
$u |
Select-Object surname, samAccountName, distinguishedName, enabled
}
else{
Write-Host "User with emailaddress $($_.emailaddress) wasn't found in AD"
}
} | Sort-Object surName |
Export-Csv -Path $CSV_Out -NoTypeInformation
NOTE: you haven't identified the name of the column in your CSV that holds the emailaddress. I'm assuming it's "emailaddress"!