How to change bulk attribute for users

This example is made for company attribute on AD. you can use writable attribute

Import-Csv c:\files\companyusers.csv |ForEach-Object {
    Set-ADUser $_.samAccountName -Replace @{
        company = $_.Company
    }
}