When a script reads in arguments from the command line, they're put into @ARGV (not @ARG - that's only for passing between subroutines) and you can retrieve them using
for the first one, etc. (Or use GetOpt)
Most likely your system call is working, and your next script is failing to read in the correct variables, but I can't really tell unless you post more specific code.