Updating remote host

Greetings Community,

I would like to update in regular intervalls a remote host machine running teamviewer 14. The machine is currently out of reach for me. It is running Ubuntu 18.04. Is there a way to update and restart the machine and then beeing able to connect again via Teamviewer to this machine. Therefore it would be necessary that Ubuntu also starts an instance of Teamviewer.

Thank you very much in advance for your help I appreciate it.

Greetings

baxbear