A hacky shellscript to control the USB Relays you can find out there that speak HID instead of serial. Specifically, I developed it for Amazon product ID B07CFQMDJ3, the 2 relay version. Haven't tested with any of the others but should all work similarly.
You will need the hidapitester command installed.
It's a shell script. Make sure it's marked as readable and executable, and put it wherever you want it.
relay <all|1|2> <on|off>
Copyright © 2022 Aaron Kondziela