Try with "#RequireAdmin" and try to modify sleep timer but same result.
Someone has an idea for intercept ALT+F4 keys and not let Windows 10 close the window ?
(AutoHotKey work without any problem under Windows 10)