Try this:
$FileNames = Get-ChildItem -Path "C:\Users\anagre\Desktop" -Filter *.csv
In your above code you didn’t use the $PSItem ($_) in your where clause, and if you want to use a wildchar you have got to use the -like operator:
$FileNames|where{$_ -like "*.csv"}
or
$FileNames|where{$_ -match ".csv"}