I have an array and i want to export it to CSV and I use below code.
[string[]] $Params = "Foo", "Bar"
$Params | out-file "D:\Output.csv" -Encoding ascii -Force -Append
#Output
Foo
Bar
Foo1
Bar1
Foo2
Bar2
It appends the CSV in row wise and i want it to in column wise like below,
Foo, Bar
Foo1, Bar1
Foo2, Bar2
Somebody please help to get a solution...
