This won’t let you interact with it, but you can at least know it’s been opened on the remote machine. This helped me when I needed Teamviewer to be open after it had crashed.
- Log into your Mac OS machine via SSH. This has to be preconfigured, it’s not available by default.
- Execute the following
TeamViewer.app can be replaced with any app of your choosing. Autocompletion is available in this directory so it makes it a bit easier to look and find what you might be wanting to open.