A dictionary must declare a type for the key and value when it is created. A dictionary which uses a String for the key and IPAddress for the value may be created using either of the following examples:
$dictionary = New-Object System.Collections.Generic.Dictionary"[String,IPAddress]" $dictionary = New-Object "System.Collections.Generic.Dictionary[String,IPAddress]"