I have a CSV that uses a running log to update the status of a lot of automated tasks. I need a quick method to look up information from the CSV so I can modify it and export it back to the CSV.
For this example, let's assume that I'm keeping track of running processes and I want to use the "ID" property as a key for the hashtable.
$pathCsv = 'C:\test\test.csv'
Get-Process | Export-Csv $pathCsv
I can import from the CSV just fine, but I don't know how to convert it to a hashtable or get it from a hashtable to CSV.