Script to turn off Team viewer windows / mac OS

Options

we want a script to turn off team viewer and when we use a script to kill the process it turns on by default.  Is there a way to turn it of until you reboot the computer.