How can I launch games from the home screen? Command line perhaps?

I want to add games to my home screen, so I can just tap them, and they’ll open up in RetroArch. Maybe there’s a command line I can use to run games? If there is, I’m sure there’s a way to create command line shortcuts for the home screen in Nova Launcher or something.

There was an attempt here.

I’m trying to test out the command from this post. I adapted it.

am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -e ROM /storage/emulated/0/Download/Zelda.zip -e LIBRETRO /data/data/com.retroarch/cores/quicknes_libretro_android.so -e CONFIGFILE /data/data/com.retroarch/retroarch.cfg -e --appendconfig /storage/sdcard1/retropad/segagenesis_default.cfg -e IME com.android.inputmethod.latin/.LatinIME -n com.retroarch/.browser.retroactivity.RetroActivityFuture

Edit: I got an error before, but I just needed to type su first.

Right now I’m just having the same problem as the other guy. I can’t figure out how to load custom configurations.