"Command to execute after download" in the web gui can pass the following arguments to the script
.replaceAll("%folder%", shellEscape(this.downloadObject.extrasPath)) .replaceAll("%filename%", shellEscape(track.filename)),