Bash function argument returns error "command not found"
It may be the space in TITLE= "$1"
that causes the error. Try with TITLE="$1"
In my case:
echo "Deploy of `$1` to `$2` project? (Y/N)"
the issue was also present. When I removed [``] it's gone. Not sure if you pasted a complete script but beware double quotes for args.
Similar answer https://askubuntu.com/questions/180320/bash-script-program-with-parameters-as-a-single-variable-command-not-found