I'm having more then 59 servers I need to create a script for user add.
purpose: if I'm creating a user in one server it will be reflected on all 59 servers. How can I accomplish this?
I very much agree that LDAP or similar systems is the best way. If you insist on doing it manually, here's a way:
The best tool for this job is
Syncing users and groups between servers is exactly what LDAP is for. I highly recommend against using a homegrown solution for something like this, especially since there are a lot of variables to consider when synchronising users and groups between different servers.
A guide to set up LDAP is outside of the scope of this answer, but you can find a quick start guide for OpenLDAP, the most popular implementation, on its official website.
How about of "Configuration management software" as puppet, chef, ansible...
For me, the best way to admin lot of machines today.
If you want not deploy a puppet master can apply any configuration with "puppet apply"
After, apply changes.
Reusing terdon's code...
As you see, you can create user or do any other thing.