Hi Mohammed,
I’m sure there are many others, but you might want to take a look at the Really Awesome New Cisco Config Differ (RANCID) tool.
If you have Linux servers you can install from source or as an RPM. If you configure it in cron it will collect the device configurations periodically and maintain the difference in a Concurrent Versioning System (CVS). You can also use the tool to run commands, either specified on the CLI or stored in a file, against one or more devices.
The blog Getting started with RANCID has a good explanation on its use and has a number of examples of running commands as you need.
Regards