I'm assuming this is to power the pc off/on. Depending on the bios options there may be a way to do it without hacking the power switch. I have an assortment of mini-pcs I'll be using in cabinets. Some have a keyboard button combination that will power them on (alt+p for Lenovo) and most have the option to power on "when power is restored." So if you can power down via a front end option, then you can power back on with a keyboard shortcut (thinking i-pac macro) or by toggling the power supply off and back on.