Want to automate turning on and off the router

Look in the Settings for Program Start and Stop macros.

You could start more research here: Additional Features - gSender Docs