If you have an android phone then you probably can automate that: https://llamalab.com/automate/
USB tethering is specifically listed under features, presumably there's some API that developers have access to.
Apparently by use of the class WifiManager in android.net.wifi you can programmatically change the state of USB tethering without any kind of special privileges.