Get Rail Sketch and Curve Offset

Hi, attempting to complete my first script and I need help. I need to offset joined detail lines from the railing.

I can only get this result? Can I please get help in offsetting a continuous line?

Thanks in advance!