Hello Andy,
I find it difficult to make a representation from the sentences given.
It does not include whether the locomotive is coupled behind the train and the Lok is pushing the train.
So the locomotive here could be moving forward or moving backward and the cars could even be moving in the opposite direction,
It is important to know from a group of wagons what the 1st wagon is and what the last wagon is. Then the direction of travel of the group of wagons must be known. You see shunting is quite complex.
A picture with some arrows attached helps a lot.
Even better is a layout plan so I can tinker a bit.
In the profile it is advisable to reverse the direction of the train (i.e. wagon and locomotive together) and then uncouple the locomotive in the new direction.
With a coupling route the locomotive arrives, stops and couples. then the carriages take over the direction of travel of the one to be coupled. Here too in the profile first turn and then start the new route.
But please send the track plan with the situation already prepared. I am happy to help.
Greetings Rupert