First you’ll need to stop ES from starting up at boot time. I believe you can do this from the retropie-setup script. From there the easiest way to get something to run at boot time is to add a command to /etc/rc.local
.
Reply To: Start a specific emulator by command line