Yes this can be done with a control track. See link about this. Chris and Don use this type of control I am new at using it but it works really well I can send you examples of what I have done if you want. I would like a look at your layouts I like to see what other people get up to 😆 My email addy is
I have a shunting example that uses a control track – with a second control track acting as a loop counter. I don’t have anywhere to post it, email me and i’ll send it to ya.
I have uploaded a layout to Brainbombers which makes use of a shunting operation based on the information you have provided. The layout also contains main up and down lines and station which are kept busy from a Fiddle Yard at the rear of the layout.