It's probably best to do in a separate mod, as it's not really related to signals and circuit network, and should probably have entirely different UIs.
But yeah, probably not that hard to add hooks for doing something like this, and probably expose some simplie API for giving vehicle orders from code, chaining and queuing them, etc.
Iirc there were a few combat and cargo vehicle mods, which might already have some degree of control loops like that from lua code.