You would like to use a Power Control task to restart a computer, but you only want to restart the computer if it has a pending reboot.
This task will check the following registry key: HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations. If this has a value, the power control task will reboot the computer if the flag perform reboot only if pending is marked.