There are instructions on https://onlinehelp.tableau.com/current/desktopdeploy/en-us/desktop_deploy_automate.htm
Batch file to install and activate can be like
===============================================================
REM Install using your own values for Autoupdate server and Reporting server.
TableauDesktop-64bit-2018-1-3.exe
/quiet /norestart ACCEPTEULA=1 AUTOUPDATESERVER="assets.intranet.lan"
REPORTINGSERVER="http://mytableau"
REM Activate using your company code
"C:\Program Files\Tableau\Tableau 2018.1\bin\tableau.exe" -activate AAAA-1111-2222-EEEE-9999
================================
Setup Type: Legacy Setup with command line support
Deployment Method Used: Vendor Provided Command Line (switch driven)
Deployment Difficulty:
unspecified
Platform(s): Windows