Switch Applications From The Command Line With Apple's osascript
You can open and/or swith to an application from the command line using Apple's [TODO: Code shorthand span ] tool to run either javascript or apple script.
The javascript looks like this :
bash
And the apple script version looks like this :
bash
In some cases, you'll need to use the full path to the app