Converting 3.3 volts PWM to 10V PWM
Try this way, maybe it won't short.



simulate this circuit &ndash; Schematic created using CircuitLab
The upper PMOS is capsized, so the built-in intrinsic diode is in conduction mode. You should swap Drain and Source to have a correct orientation.