Convert bash script to a compiled standalone binary executable, not text
I would take a look at a project named shc (Shell script compiler).
https://github.com/neurobin/shc
It takes a shell script and compiles it into C source code. The C source code can then be compiled with a standard C compiler into a binary executable.
This allows you to run the script you've made without the contents of the shell script being immediately revealed in clear text. It would be a binary executable like so many others.
It might take a bit of trial and error to get your specific script parsed by shc depending on how advanced features you're using in your bash script, but this should take you most of the way there.
Note that the program really just encrypts your shell script and integrates it within the binary. When the binary is executed, the script is decrypted and executed using ordinary shell again. For programmers it would be trivial to break this to reveal the contents of your script, but for hiding the script contents from the average home user it would perhaps be sufficient.
If you have HomeBrew installed, you can install shc by running the following command in the Terminal:
brew install shc

Then it's just a matter of running shc to convert your script into a binary:
shc -U -f myscript.sh -o mybinary

The mybinary command is then the finished product.