Run only script

I'm trying to make a script to run the install of Teamviewer 12 with the Run Only (One time use) option.

 

Can anyone help?