Hello
Thank you for your question and reaching out. I can understand you are having query\issues related to Task Scheduler.
It may be Bug that if the password cannot be verified when 'When the computer starts' has been selected.
Alternatively Please put the script or program shortcut in the startup folder for all users %allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup
Reference :
--If the reply is helpful, please Upvote and Accept as answer--