Setting bash script to be automatically started When my Mac starts I want to automatically start a batch script called run.sh in the folder myfolder. When I start Automater I only find options for AppleScript and JavaScript.
Create your shell script as run.sh in your $HOME/myfolder folder.
Paste the following one-line script into Script Editor:

do shell script "$HOME/myfolder/run.sh"

Then save it as an application.
Finally, add the application to your login items.


For login item, you can check this page: https://support.apple.com/guide/mac-help/open-items-automatically-when-you-log-in-mh15189/mac