I know typically when you export to excel you can use a PSCustomObject. However this creates defined columns headers, for example:
[PSCustomObject]@{
“Name” = $name
“Number” = $number
“Color” = $color} | export-CVs
CSV output
Name Number Color
Bob 1 Blue
Carl 2 Red
But is there anyway to export without static headers?
For example
$array1 = (Bob,1,red)
$array2 = (Carl,2,blue)
Bob Carl -> this is row 1
1 2
Red Blue