Can't help you with scripting but this sounds like a
transmission line structure and so I wonder whether
you might have such a Tline-autogen-thing available,
unbeknownst. Or, you might find the scripts you seek
by searching in that area (better quality leads, at
least).
I know I've seen people use bus-following path draw
features, don't know what to properly call it or how
to use / what tools have this. At least this cuts down
on drawing, you just have to get the first trace how
you want it.