Every shunting situation will be unique. The "one size fits all" driver command will have problems caused by caused by the placement of signals, junctions, track marks, other consists, track lengths, phase of the moon, etc that are unique to each situation. Developing an automated command sequence for one situation will take a lot of testing, time and frustration - and that solution will not work in a different situation.
The task is not impossible, but it will be time consuming.
My experiences anyway