Is there a USB C power control protocol?

Hi, long time reader first-time poster…

Is there any protocol in the bios/firmware/software etc to independently power on and off the USB C ports? I’d like to independently control the output, say turning a USB-powered light on and off by switching off the USB C port.

Controlling power to individual ports depends on the usb hub chip used. Most just don’t contain the necessary power switches.
baeldung.com/linux/control-usb-power-supply

github.com/mvp/uhubctl

No clue how to check or control it if you’re on windows

I looked at this, but did not find a way.
I wished to power off the ethernet card while in sleep mode.
For the light, you would need the light itself to support the on/off via a usb protocol.
If you need more power for the light, it would need to support usb power delivery protocol in order to request it.