Just open the .CSV in a text editor and add the first line "3DPOLY". It will look like this:
3DPOLY
1023893.32,4909903.32,100.3
1023442.45,4909705.12,101.2
1023544.56,4909808.43,99.89
The format should be: x,y,z.....
Save it with the extension of .SCR. Now you have a script to draw the 3Dpolyline. Whatever your current layer, color, linetype settings are when you run it will determine those. No special LISP program necessary.