I'm trying to read a csv file in powershell and for each item from the first column I am running a powershell command and I want the output to be added to the next column in the corresponding row. The problem is that I don't know how to add the output from the command to the CSV in the corresponding row. Ex:
To
A1,B1
A2,B2
A3,B3
add C1,C2,C3
as
A1,B1,C1
A2,B2,C2
A3,B3,C3