Auto-Archiving with Windows Task Scheduler not working

Guys I really need help on this one. The article Matomo provides (How to Set up Auto-Archiving of Your Reports User Guide - Analytics Platform - Matomo) is no help. I followed it as best I could for Server 2012 R2 even though they give instructions for 2008. I scheduled it to run in the morning and by the end of the day it was still seemingly running and there were tons of errors in event viewer. Can someone please tell me exactly how this should be set up with Windows Task Scheduler for a more updated? Thanks

Let’s keep this in one thread to avoid splitting up the discussion: