Task Scheduler returns Directory Name Invalid for valid path

Solution 1:

I had the same problem but more generic: The Start in (optional) field doesn't support quotes (e.g. "C:\Program Files"). I removed them and it worked!