Script help

I dont know much about running scripts/programming so maybe someone can help me. im trying to run a basic script that will close all open browsers. My dad likes to leave dragon open for days. i know i could run

taskkill /f /im dragon.exe

but when i do this everytime i open dragon it says dragon did not shutdown properly etc…
so what is the proper way to close it, and other browsers, from bat file or some script

thanks

so i took a different approach. i just scheduled my parents computer to reboot at 2am everyday

thanks anyways, topic locked