This is the most direct method for adding any executable, script, or shortcut.
The Settings app provides the safest and simplest interface for enabling or disabling startup programs that have already registered themselves. how to add program to startup windows 11