I question the need for it at all. You could send a digital 5V signal through a diode and fake the feedback loop into thinking the output voltage is too high. That would shut down any type converter. If it is anything like the 2596, pin #5 is the shutdown pin. Raising it above ground will shut down the converter. This pin is fast and you could PWM the converter for variable intensity.