Open a terminal tab at a specified directory from command line
In MacOS 10.13.2 (but possibly/probably in earlier versions too):

    directory=~/Downloads; osascript -e "tell app \"terminal\" to do script \"cd $directory\""