Analog Port as 5V?

What about an external power source, a 5v regulator --> you make a couple of seperate 5v "branches" each under the control of a transistor?