you can use ssh to directly run commands on remote server like this
ssh root@remote_host "/tmp/script.sh"
This will prompt you for password, unless you have copied your local user's public key to the authorized_keys file on the home of user .ssh's directory. This will allow for password less authentication.
I dnt have root access. 1st i have to login as user account then i can get root access with this command - /usr/local/bin/sudo su -
i have to run the script in to nearly 200 servers.