Foxhound : No idea how to make a script doing that. Why dont you use an external program? For example for Nvidia you can use rivatuner.