It’s trivial but interesting and hard to determine the cause. Because you can’t even get “log" to it.

The issue is because you DID log the case, but the format you wrote which is wrong.

Please refer to this article. I quoted the point.

https://stackoverflow.com/questions/44664708/date-produces-different-result-in-batch-file-when-run-from-scheduled-tasks-in

I caught this picture with super fast reaction. You’re welcome.

The problem showed that there is no log file about this task. We all well-know (ya?) that log file can’t be created by “yyyy/ mm/ dd" format.

Got you!

So, please follow the steps to change your format of system.

windows settings – Time& Language
Time& Language – Formats
Adjust it.