I have the solution without installing anything. Read this article:
https://www.askvg.com/windows-tip-disable-this-app-is-preventing-shutdown-or-restart-screen/
It is magic. A simple tweak.
1. Type regedit in RUN or Start search box and press Enter. It'll open Registry Editor.
2. Now go to...