Electric fan in lieu of Flex Fan

I have a puller fan on mine hooked up to a toggle switch. How would you add a stat into the system and lose the switch?
AL