After implementing scheduled tasks on server 2016 and 2019 we have sometimes the following annoying message. Trying literally everything. Finally we did solve this by adding an extra checkmark in the “settings” tab.
Check the box:
“Run task as soon as possible after a scheduled start is missed.”
Running Powershell scripts with the task scheduler
Added arguments: -ExecutionPolicy Unrestricted -file “c:\scripts\somescript.ps1”