in reply to need help with system command and single quote

Just a style note: the construct you have above -- iteration -- suggests a for loop:
for my $i (1..10) { # print and system }

Caution: Contents may have been coded under pressure.