How to make a DC motor act as some sort of switch

Maybe feed it to a full wave bridge rectifier followed by a zener to clamp the input voltage?