Just did this mod on my old netbook which I'm using inside my bartop build. I just came up with it myself, didn't follow any plans, and it was very simple.
The keyboard was already removed from the laptop due to a "constant keypress" issue and underneath it was the ribbon connector connecting the on/off button to the mainboard.
Your pc/laptop may be different to this. All you need to do is to trace the line from the power button to where it meets the mainboard, then you know you're messing with the right thing.
Under your powerbutton will be a temporary switch, usually a very small plastic square with a round button on top that's pushed down by the larger button above on the chassis when you depress it. However, in my case it was like a really tiny gold penny sort of shape about 3mm across. either way, this will be connected to the power part of the board with 2-4 legs. To test which legs you need to solder to, simply get the wires you intend to solder connected to a button and a microswitch and touch them against 2 terminals (legs) whilst pressing the button repeatedly, if they don't do anything then try another combination of terminals (always using each wire on a different leg). When the computer jumps into life, those are the legs to solder to. You will have to be careful when soldering so as not to bridge any other connections but if you have any experience at all in soldering you should be fine.
Many people would use a multimeter to determine which of the legs is carrying the signal but I can't find mine so this "probing" method worked fine and, to be honest, a lot of people don't have a multimeter so this is much simpler for them.
sorry for the bad pictures I just took them with my phone but they should give "the general idea". You can see my solder work is quite shoddy, just did it all handheld without clamps and with, unfortunately, the most clublike soldering iron I have (I still haven't unpacked a lot of stuff from moving house, yet*)
*and it seems really important to build yet another bartop before actually having a totally "sorted" living space. Lol.

