I use PS v5.1. Few comments:
This option is not necessary if the input CSV file already has a header
-Header IpAddress
The syntax of option "-LeafBase" has changed to "-Leaf"
This option is deprecated or so it seems:
-UseQuotes AsNeeded