If you place the IP addresses all in a CSV file, you can do the connect in a loop.
Something like this for example:
Import-Csv C:\names.css -UseCulture | %{
Connect-VIServer -Server $_.Address -User $user -Password $pswd
}
Get-Datastore
The CSV file should look something like this
Address
192.168.1.1
192.168.1.2
192.168.1.3