Removing the quote and semicolon characters should be sufficient to prevent breaking out of the shell command, but this may need reviewed by someone more knowlegeable in shell scripting.