Data to a specific CSV column

Hello Anil, I come at you.
I adapted your example to my script, but it is working halfway.
My .csv is updated with one line out of two…

Column1,Column2
text,Tito
yext2,
Text3,Titu
Text4,