This happens because the software wasn't launched as Administrator, therefore making it impossible to shutdown with the necessary privileges. To avoid clicking each time a confirmation box, right click on the file and then go to Properties > Compatibility.
Tick the Run as Administrator box and then launch the software, set the timing and initiate it. It won't hang anymore and the PC will turn off properly.