Square wave voltage regulator
For a high-side switch, when your input signal level is smaller than the load voltage, you generally need two transistor stages.
The resistor values and transistor types are approximate, you need to analyze for your requirements.



simulate this circuit &ndash; Schematic created using CircuitLab