Try this out at your own risk (it's been known to work on several PCs, but not all).
Go to Control Panel/System/Hardware/Device Manager, select View/Show hidden devices.
If you see some NT Legacy (called something like that) or some device crossed over with a red line, enable that device, then the pc should shut down automatically.
Provided of course that you have a switching PSU.