Written a Perl script to backup MySQL database. Since this script is written using the Cygwin environment, it is a little of challenge to run it as a Microsoft Windows scheduled task. I have finally figured out that the following works perfectly.
D:\programs\cygwin\bin\run.exe -p /usr/bin rxvt.exe -e bash.exe -c "/cygdrive/d/home/bin/mysqlbackup.pl"