Based on this SO question Powershell: Output collection of objects, I am able to wrap a collection of strings in multiple lines in one column. However, when I try to output
Here is an example
F:\> $array|format-table RecordType,
$array|Format-Table @{Label= "RecordType";Expression={ $_.RecordType}; Width = 10 }, `
@{Label= "Date" ;Expression={ $_.date}; Width = 8 },`
@{Label= "Time" ;Expression={ $_.Time}; Width = 8 },`
@{Label= "code" ;Expression={ $_.code}},`
@{Label = "sales" ;Expression={ [math]::Round($_.sales,2)} }