When trying to parse CSV data with newlines inside of fields, ConvertFrom-Csv will not work properly. Here is an example:
test.csv
name,address
John Doe,"123 Easy Way
Apt. 10
Somewhere, USA"
Jane Doe,"456 Main St
Unit 5
SomewhereElse, USA"
Proper parsing
> Import-Csv test.csv
name address
---- -------
John Doe 123 Easy Way...
Jane Doe 456 Main St...
Improper parsing
> Get-Content test.csv | ConvertFrom-Csv
name address
---- -------
John Doe 123 Easy Way
Apt. 10
Somewhere USA"
Jane Doe 456 Main St
Unit 5
SomewhereElse USA"
As seen here, the newlines are parsed as new records rather than newlines within the field. How do you solve this problem?