reset computer by program

Hi, all:
Due to some bugs in the winPE (confimed by Microsoft), we can not reboot
it by ExitWindowsEx API at certain case.
I think it can be avoided by a program which emulates the hardware power
reset singnal. But I do not know how to do it.
Could anybody help me? Thank you very much.