Powershell to get list of hosts

You should use automation user(special for API)