title: How to create a .bat file that starts Maya and calls a python script at startup using evalDeferred?
body: <p>I'm attempting to run a python script that creates a custom menu inside Maya when a .bat file is opened to start Maya. The python script is not inside the Maya project and I wanted to add the path in the batch file. I have this in the .bat file:</p>
  <pre><code>start D:\TOOLS\Maya2019\bin\maya.exe -command evalDeferred(python('execfile(\&quot;D:\CustomMenu_startup.py\&quot;)'))
  </code></pre>
  <p>Several attempts already but it's returning a syntax error.</p>