@Mikeymac02 All I did in my cabinet was run the power coming in through a toggle switch first then to a outlet inside the cabinet. Then I just plugged in a good surge protector to my switched outlet to power everything. To turn on just flip the toggle switch and it boots up. To turn off, properly shutdown retropie from the menu then flip the toggle switch to kill everything else.
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first