in reply to Export variables from perl to a bat file
If you want to interpolate variables like $product{commandstop} into your system call you need to enclose the whole string in double quotes not single quotes (and having done that you'll need to escape the literal double quotes in the system call by backslashing them).