How to run a bash script from the desktop?
You can add a .command extension to your text script.

Then use chmod 744 to make it executable.

When opened or double-clicked in the Finder it will then run from the Terminal.