Can anyone please help me on how to rotate gears on autocad 2013 using script

Autocad 2013