I have a field in a CSV that is First Name. However, I want to rename that to Name.
I have the following code below. However, I am not sure how to handle that space between the t
and N
.
I've tried using quotes and some other tricks but so far none have worked. What do I need to do to get the values?
Import-Csv .\Downloads\addata.csv | Select @{n="Name";e={$_.First Name}}