I just had a question on what controls a power supply.?

I just had a question on what controls a power supply, I'm not very tech savvy and a another hypothetical question is it possible in theory to inject arbitrary code from one? sorry if it sounds like a ridiculous question to ask. I wont know unless I ask :)
2 answers 2