I’ve just tested the Task Scheduler and yes - it works perfectly on Windows 11. Here are a couple of screenshots.
[1] Run with highest privileges
–
[2] Configure the Trigger to be At system startup
–
[3] Select the location of your script
–
[4] Uncheck this check box if you want to run it even if your laptop/desktop is not on AC power
–
That’s it.
Alternatively, use a free edition of Winpatrol → LINK