Granting Easy Access Via Script or API

   I have about 300 TV hosts that I need to grant myself easy access to. I am trying to find a way to do that with a script rather than having to connect to each one individually and setting it up manually. Is there any way to do that via the API or a powershell/command script?