There are two issues with the alias
It requires you to be in a particular directory when you invoke the alias. If you're in a directory where
menuScript.shdoes not exist, the alias will fail to execute.
It would be better if you specified the full absolute path to the
menuScript.shscript when defining the alias, e.g.
As others have already said, another reason why the alias may fail is that the script is not executable, or that is have an invalid
#!-line. Make sure that the script is executable with
chmod +x menuScript.sh
and that the first line in the script is
or whatever the path is to
bash(or whatever shell the script is written for) on your system.