So, I got it haha
#/bin/bash
newtab(){
osascript \
-e 'tell application "iTerm2" to tell current window to set newWindow to (create tab with default profile)' \
-e "tell application \"iTerm2\" to tell current session of newWindow to write text \"${@}\""
}
newtab 'cd ~/dev/clubpetro-frontend && code . && yarn run start'
This is the .sh file that I create, all I do is call bash ~/dev/alexa/teste.sh
on trigger working perfectly