How to pass a file set as a variable from AppleScript to a Bash shell script
The first problem with the first script is you aren't using the set myFile variable.

Here's a general guide to getting help:

Open Script editor - use the help menu to launch the AppleScript Language Guide and search for the command you have. In this case "do shell script"

That takes you to: https://developer.apple.com/library/prerelease/content/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/CallCommandLineUtilities.html

The example there shows how to set a variable for a host name and then call ping:

set theHostName to "www.apple.com"
do shell script "ping -c1 " &amp; theHostName


So, in your case you'll need:

do shell script "/path/to/script.sh"  &amp; myFile


At that point, you'll likely run into path issues so running small snippets of code in the editor, looking at the result and iterating should get you to solutions as inevitable errors in path, parsing, logic crop up. I left a typo in the second "do shell script" example above - pay attention to spaces and quotes :-)