Sounds like you're looking for something like this:Tableau server silent install
Hope this helps!
Our knowledge base article should provide you an interesting support too: Automated Installation or Upgrade of Tableau Server
Thanks for your reply.
I have it working now. Worked with Omar a tech support engineer from Tableau, who helped me in automating this.