The power button on my second monitor is broken. I’m tired of manually unplugging the cable from the monitor. What do I want is to write a small app (Java, C#, or PowerShell script) that will turn the second monitor off and back on. I googled my problem and found a script that can put the monitor into sleep mode. But that’s not exactly what I need.
So the answer is that you can’t turn off the power source for your monitor programmatically if the monitor has two cables – one for PC and another for power.