If Task Scheduler fails a task (error 0x80070006 handle invalid)

I use task scheduler to run Dell Display Manager a couple of minutes after I log on in order to give it some time to recognize my monitor.

Suddenly (or perhaps after changes I made which I couldn’t remember) the program would not open anymore! Task Scheduler explained this as an error 0x80070006 handle invalid…

I tried to reconfigure the task using settings I was familiar with being sure they work, yet without success. Then I made this change which proved the right one. You can do the same in case you face this strange problem: Just delete the task and create it again!