Okay, I have learned a lot today, but really having an issue with this one. I have created an array using import-csv. It has two columns. I want to use the first column as a key and return the value in the second column.
I am sure, knowing PowerShell, that there is probably a very simple way of doing it, but what I've got now is:
$a = $ClientList | Where-Object client_id -EQ "123" | select client_name
So, if $ClientList contains:
I want to populate $a with "Jane Doe"
However, whet I end up with is:
How do I return ONLY "Jane Doe" without the header?