How to pass user input to Apple Script then execute?
There is no need to use AppleScript here, you can pass data from Automator directly into a shell script.



Depending on where you've stored the script, you may have to include the full path to the script in the action (/path/to/video-dl "$@").