title: Run a php script via Windows Batch File - not working in Task Scheduler only
body: <p>My .bat files do not work with Task Scheduler.</p>
  
  <p>For testing purposes, I created an extremely simple, one line .bat file:
  php E:\POC\route.php</p>
  
  <p>{the router.php file contain some file operation}
  If I run this file by double-clicking it, it works correctly and Returned The Expected Output</p>
  
  <p>But if I create a task to run this very same file, the text file is NOT created.  The History log for the task says that the task was started and completed successfully yet no text file is created.
   Note: Already i set the environment variable for php ("E:\Php")
  Any thoughts?  Thanks.</p>