I'm trying to export multidimensional array to csv with some formatting. Currently I'm just doing multidimensional array into object to export out but hoping to get some advice on formatting things.
$dummy = @(("a","b","c"),("1","2","3"),("John","Jane","Smith")
$obj = $dummy | Foreach-Object { [PSCustomObject]@{ 'value' = $_ } }
$obj | Export-CSV -Path "C:\folder\test.csv" -NoTypeInformation
with this code though my results are
hoping to make it look like
or any other way just be more formatted and not set as one cell so to speak
any advice or suggestion would be appreciated