title: cURL runs fine on cmd line but not with a batch script
body: <p>How do i convert this cURL cmd into a batch script -</p>
  <pre><code>curl --request POST \
  --url https://api.example.com \
  --header &quot;Authorization: Bearer token&quot; \
  --header 'Content-Type: application/json' \
  --data '{&quot;personalizations&quot;: [{&quot;to&quot;: [{&quot;email&quot;: &quot;email@email.com&quot;}]}],&quot;from&quot;: {&quot;email&quot;: &quot;email@email.com&quot;},&quot;subject&quot;: &quot;Subject&quot;,&quot;content&quot;: [{&quot;type&quot;: &quot;text/plain&quot;, &quot;value&quot;: &quot;Body&quot;}]}'
  </code></pre>
  <p>this is the error that i am getting -</p>
  <pre><code>[Running] cmd /c &quot;c:\Users\sendMail.bat&quot;
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: \
  '--url' is not recognized as an internal or external command,
  operable program or batch file.
  '--header' is not recognized as an internal or external command,
  operable program or batch file.
  '--header' is not recognized as an internal or external command,
  operable program or batch file.
  '--data' is not recognized as an internal or external command,
  operable program or batch file.
  
  [Done] exited with code=1 in 0.078 seconds
  </code></pre>