Get-ADUser with display name as a value
<p>**I have list of users display name in CSV file and I am trying to get samAccountName  and export it to CSV file but its not working, I understand that get-aduser doesnt accept display name as a value so I used filter but still not work help please:)</p>

<p>CSV file format </p>

<h1>User</h1>

<p>Amer, john<br>
Doe, John<br>
smith, john<br>
**  </p>

<pre><code>$list = Import-Csv C:\export.csv
foreach ($user in $list) {
Get-ADUser -filter { DisplayName -eq "user.user" } | Select samAccountName | Export-csv C:\export1.csv
}
</code></pre>