Then unplug the PC until the power comes back on. DO NOT carry on working, take time for a break, give your eyes a rest, go out for a meal, have a kip.
However, your PC/AIO/laptop will not automatically turn back on when the power returns, you have to press the ON button. So a surge will not affect it.