I had this same problem with windows batch files at my last company.   We ended up going with a windows service instead.  Perhaps doing the same will help you case.

  
      

      Stackify – 2 Jun 17
  

  
    

What are Windows Services? How Windows Services Work, Examples, Tutorials and... 3

  How Window Services works, examples of Windows Services, and options for developers for configuring applications to run as a Service.

  
    Est. reading time: 5 minutes