I use Powershell a lot to process bulk data exported from SAP and other
systems. The export interfaces create CSVs with headings which contain
spaces. This works fine but it limits the ability to reference the objects.

A exported field might be called "Employee Number".
IMPORT-CSV creates an object with a NoteProperty called "Employee Name"

Now

$obj."Employee Name" is not valid

$obj.EmployeeName would work nicely

Is there a way to modify NoteProperty -name after IMPORT-CSV
or
Is there a way to make IMPORT-CSV remove spaces from names?



Thanks