Your scripts aren't attached (maybe removed for security reasons)... so my answer may lead in a different direction.
Why aren't you just doing something like this in your batch file?
php.exe C:\checkContracts\myfile.php
And trigger that script via task scheduler?