Need Help with Shell Script

I need some help with a shell script. I'm trying to get Hazel to trigger Compressor to automatically convert image sequences to quicktime videos. I know how to use Compressor's Command Line functions, but Im having trouble getting a shell script from Hazel to feed into it. Basically, I only need two parameters for Hazel to feed the shell script. This is the shell script that will run successfully from Terminal.
/Applications/Compressor.app/Contents/MacOS/Compressor -computergroup "This Computer" -jobpath ~/Desktop/Hazel\ Watch\ Folder/VideoFolderToConvert/ -settingpath ~/Library/Application\ Support/Compressor/Settings/ProRes_4444.cmprstng -locationpath ~/Desktop/Hazel\ Watch\ Folder/VideoFolderToConvert.mov
So I need Hazel to fill the jobpath and locationpath. Jobpath is the folder that triggers Hazel to run when it gets added to the watch folder, so that should just be $1, right? The locationpath needs to turn the jobpath folder name into foldername.mov.
Hopefully that all makes sense. I think it should be something easy for someone good at shell scripting, but I'm just learning. Thanks for your help.
/Applications/Compressor.app/Contents/MacOS/Compressor -computergroup "This Computer" -jobpath ~/Desktop/Hazel\ Watch\ Folder/VideoFolderToConvert/ -settingpath ~/Library/Application\ Support/Compressor/Settings/ProRes_4444.cmprstng -locationpath ~/Desktop/Hazel\ Watch\ Folder/VideoFolderToConvert.mov
So I need Hazel to fill the jobpath and locationpath. Jobpath is the folder that triggers Hazel to run when it gets added to the watch folder, so that should just be $1, right? The locationpath needs to turn the jobpath folder name into foldername.mov.
Hopefully that all makes sense. I think it should be something easy for someone good at shell scripting, but I'm just learning. Thanks for your help.