title: How to run a window batch file in apache airflow DAG
body: <p>Is there a way to execute windows batch file in an airflow DAG , for example I would like to invoke this batch file API.bat. This batch internally does API Calls/DB inserts</p>
  <p>The reason why I would like to do that is we have around 20 batch files so no need to rewrite python code and just invoke the batch file. One batch would represent one task in DAG.</p>
  <p>Here are few clues I found but there are no examples invoking a batch file</p>
  <p><a href="https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/bash.html" rel="nofollow noreferrer">https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/bash.html</a></p>
  <p><a href="https://stackoverflow.com/questions/65403421/using-airflow-to-run-bat-file-or-powershell-program-located-in-remote-windows-b">Using Airflow to Run .bat file or PowerShell program located in remote Windows Box</a></p>