failing to make an E switch with mosfets...

This is for 24V may work for 50V, to be safe increase r3 to 1k and test it.