Open
Description
If you attempt to do this
Get-EC2Address | ? { -not $_.associationid } | Remove-EC2Address
You'll get the error: Remove-EC2Address: You may specify a public IP or allocation id, but not both in the same call.
Typically with powershell to solve this you'd give the cmdlet an inputobject
param which it typed to the object, and allows pipeline input, which would end up binding the object to the param, and not to the params that are by property name