This is relatively simple to fix. If you have console or VNC access, log in as an administrator, go to System Preferences, click on Energy Saver, click on the options tab, check "Restart automatically after a power failure".
Alternatively, you can connect via SSH and run sudo pmset autorestart 1
to
achieve the same effect.