List of Triggers
5. Set two Actions as per as the screenshots below. Please change the service name Teamviwer9 to the service name of TeamViewer version you are running in the Arguments section.
You can find service name from services as below
Once you have the right service name please add actions as below
You can also use a batch file to create same action, but I prefer doing without batch file.