A script for controlling trains in Rigs of Rods