I have used such a type of switch, but they have always used something like this: https://www.amazon.com/Power-Supplies-48VDC-SINGLE-OUTPUT/dp/B005T99K6W