title: Start Perl script via "Windows Command" through Cygwin
body: <p>i have the following issue:</p>
  
  <p>I try to start a perl script from the windows scheduler through cygwin</p>
  
  <p>Steps i do:
  Call process.bat file
  In the process.bat i call bash with the parameter for the perl script</p>
  
  <p>Symptoms:
  If i call "perl scriptpath" directly from cygwin it works like a charm
  If i call the script from the windows cmd with bash it will not work.</p>
  
  <p>Command: C:\cygwin\bin\bash.exe --login  /cygdrive/c/scripts/testscript.pl
  It prints the following:</p>
  
  <pre><code>Line 3: use: command not found
  Line 4: use: command not found
  Can't find file Test
  </code></pre>
  
  <p>Script:</p>
  
  <pre><code>#!/usr/bin/perl
  
  use strict;
  use warnings;
  print "Test";
  </code></pre>
  
  <p>Probably i'm making only a small mistake and cannot see it. It seems to interpret it with the windows cmd instead of the perl.</p>