use warnings; use strict; system qw{D:\\SiteScope\\tools\\plink.exe -ssh user@myserver -pw Password . ./scripts/myscript.sh}, @ARGV[1,6,7];