I have a .csv template with an empty column called URL. I would like to update it every time I get a value for its user.
Here is what I have so far:
$file = "c:\Users\user\Documents\users.csv"
Import-Csv $file -Delimiter ',' | % {
$_.URL = $generated_url ; $_
} | Export-Csv "c:\Users\user\Documents\users_tmp.csv" -Delimiter ',' -notype
This updates all of the cells with the same value. Is there a workaround? Thank you