There is a question on how to start, Teamviewer from commandline, to make outward connections, however I want to start the Teamviewer from commandline (So it can accept incoming
I am following up with @Queenvictoria's comment on @Aldekein's answer.
As mentioned, you can use take a screenshot of TeamViewer with:
osascript -e 'tell application "TeamViewer" to activate' && screencapture ~/Desktop/teamviewer.jpg
However, email servers usually don't trust email coming from non-commercial sources. So my solution to receiving the screenshot to use SCP.
scp [user]@host:/Users/[user]/Desktop/teamviewer.jpg ~/Desktop/