Ok I see... So it's possible to use my script and retropie However, only on a computer.
Thanks for the information I wasn't aware that on RP almost all emulators don't run on X.

Thanks a lot :)