Aten Switcher

Hi

I’m having some trouble getting a stable setup with the Aten 4x4 HDMi switcher. For each activity I’ve set some startup and shutdown commands to make sure they’re running on the right input e.g. appletv or sky. The problem I have is that when I click on an activity a second time the commands run again and it puts it on the wrong port and ends up with a different input for that activity. Is there a way to make the activity only run the startup commands once? Or has anyone else who has a similar type of switch have a workaround for this?

Thanks in advance!