The Windows Task Scheduler is set to run a script, but after it starts, the script does not initiate as expected

When using the built-in Task Scheduler in Windows to run a task that opens a browser with a specific URL, such as “file:///d:/test.html” at a set time, sometimes the browser opens but the script doesn’t run, and there is no response. How can I avoid this issue?

What is the full command line you use in the task scheduler?