@jayuni100 see here:

https://retropie.org.uk/docs/FAQ/#how-would-i-start-from-command-line-say-the-snes-emulator-by-itself

/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ "<SYSTEM>" "<ROM>" To automatically start a specific system and a game directly instead of EmulationStation, you need to edit /opt/retropie/configs/all/autostart.sh and add the above line (again replacing the variables with your own values). Then, in the same file, remove any line containing #auto entirely to avoid EmulationStation or KODI to autostart again.