After checking with some folks, you would need to create the correct object type and pass that in as the argument for the -Ports parameter. Here's an example:
$hostport = New-object -TypeName NetApp.Powershell.TO.HostPortCreateRequest # Use this as the argument
$hostport | Get-Member # to see the list of members that you can set
$hostport.Port = “WWPN” # 20000025B50B003C
Do the same for the host type if the it is looking for the same object type.