This project uses a AC Relay with USB power to switch on and off a AV receiver when my computer turn on or off. The idea is to not forget to turn off the receiver when I am done with the computer and prevent it from running 24/7.
Parts:
AC Relay - https://amzn.to/3rMgN0a