How to change / animate the icon once the script will start running?

Hello,
I need to animate the Fan Icon, once my Script will start running. Can anyone help me in this one?
Cheers