Is there anyone knows how to convert an existing script to a executable format (HEX form)?

file.sh > file.exe - something like this.

Thanks..

BR,
coaxfiber