a.bash
may look like this
#! /bin/bash
export input=$1
function myFunct {
echo "$input"
}
# This is if you want to call bsub outside the bash
# Use bsub -q Queue `./a.bash 12345`
myFunct "$input"
# Put bsub inside and call the script
# ./a.bash 12345
bsub -q myQueue `myFunct "$input"`