MyShutdown will shut down the device using the same (HTC) method as if you'd press and hold the power on/off button for longer. On all HTC devices since the "Kaiser" the "Yes/No" dialog will be skipped and the device is shut down instantly. It will not work on non-HTC devices (will do no harm either however).
Download and install MyShutdown