Please find more information here.
No problem, I'm happy to assist!!! The "%computername%" is the variable to grab the computer name of the machine and add it to the computers and contacts in TeamViewer.
The way I posted the code for you, will achieve what you want, which is to add the machine with their computer name to the contacts list.
Please try the example below for your batch script:
REM INSTALLMSIstart /wait msiexec.exe /i \\XXXXX\XXXXX\XXXXX\TeamViewer_Host.msi /qn customconfigid=xxxxxx apitoken=xxxxxx importregfile=1 desktopshortcuts=0 assignmentoptions="--alias %computername%"
Let me know if this works for you or if you have any questions!