I tried and the only way seemed like typing in
/Applications/TextEdit.app/Contents/MacOS/TextEdit
in a bash shell. But even when I close the application, it is not considered an exit. I need to go to the app icon on the dock and click "Quit" so that it will exit.
Any other way to invoke and exit it? thanks.