So your CSV is missing a header entry? CSVs need a column name for each column. They also get imported as objects, not strings. If column names are missing, I believe the cmdlet will give you a warning and auto-name them.
So… let’s say your CSV header is “LastName,FirstName” or something like that. Those become the properties of the objects – each row is one object in the resulting array.
OK thanks I got it to work with your initial script and the logic I was after.
~I only wanted a single column header named ‘managers’
~under the header, I added full names (including spaces), with no quotes and no comma after the row
Managers
Smith Joe
Jones Sally
Gates Bill
I imported the .csv into a variable, slighted modified your -LDAPFilter: