You can exit Emulation Station by pressing F4 or by using the menu of Emulation Station (F1 or whatever key you configured for that) and choosing “Exit”.
In the FAQ in the wiki (https://github.com/retropie/RetroPie-Setup/wiki#faq) you can find an example for starting a SNES ROM from command line.