Got v3 working too, except for scheduling it to run again in windows...
Used the following for activeperl on windows 8 to schedule the next run...
$command = 'Schtasks /Create /TN hik /TR "d:\perl64\bin\perl.exe \"X:/Google Drive/Code/Perl/hik.pl\""' . " /sc ONCE /SD $sd /ST $t /RU $windowsusername /RP $windowspass /f";