The ol' "ORBITERRRRRRR!" enthusiast will tell you that this functionality has already been built in, but in the form of: LuaScript ,via the use of LuaMFD.
i.e. a pic of the Lua script generator.
I personally contest this, stating that *sh is by far superior , *IF* it's ability to interact...