I think the answer to this is relevant too:
Summary: Windows 2012 Scheduled Tasks do not see the correct environment variables, including PATH
, for the account which the task is set to run as. But you can test for this, and if it is happening, and once you understand what is happening, you can work around it.