I think an USB controllable USB hub might be more handy.

There are already off the shelf hubs that support power control: https://github.com/mvp/uhubctl