Turn on computers after power outage

If you really want to turn on or even off computers with an arduino, connect both the arduino and the computers grounds together, then use digitalWrite(); to power the on switch with the arduino. BUT CHECK FIRST THAT THE POWER SWITCH IS 5 VOLTS. This should work, but there are most likely better ways to do this.