Drawing lines perpendicularly from curve to curve

No, you attached only an image of the script that is basically useless. :man_facepalming:
And created a duplicate thread under a different username, where you also failed to post GH code with geometry.

3. Attach minimal versions of all the relevant files