I've summed up the script to make use of BATOCERA.
Please install with
wget -q -O - https://raw.githubusercontent.com/crcerror/retroflag-picase/master/install_batocera.sh | bash
This script provides Safe Shutdown, the reset button will terminate running emulators and will kick you back to EmulationStation main screen. If you press reset button in ES main screen, Batocera will do a quick restart.
Poweroff button = Poweroff
@nadenislamarre Is there a command for a KODI quickstart? This would be the ultimate solution imho and outstand the restart.