@saddlepiggy The script provides a generic power button. Just connect your latching button to pin 5 and 6 then you can power down and restart the Pie. The command switch is --generic

Or you can write your own script. I modified the python script for the NesPi+ to demonstrate usage
https://retropie.org.uk/forum/topic/17506