Create a new file with .command extension.
Make it executable:
$ chmod +x myscript.command
Open the file with any text editor, add all necessary commands, and save it:
export PATH="..." rvm use ruby-2.6.0 cd ~/Developer/some-project ...
Then we can double click on this file in Finder. A new Terminal window will open and the script will run in it.