Chosen Solution
Need to locate the power button connector to board. I want to splice into it and connect to a Sonoff 4CH Pro R2 Smart Switch, Interlock Switch for Generator, Including/Self-locking WiFi & RF Wireless Switch. And be able to turn the iMac on from anywhere. I have done this on my Windows PC easily and was hoping the same with my iMac. I’m sure I will need to drill a small hole for the wire to come out. Maybe even put a two wire connector in the hole, for unplugging and plugging in the sonoff.
You do realize the iMac can be woken from network. A simpler way to manage your system is to just connect your system to a UPS. Letting the UPS manage your iMac. Turning it off and if needed on.