Default view provides most common set of properties for information on the database in an Availability Group(s).
Information returned on the database will be specific to that replica, whether it is primary or a secondary.
This command will return an SMO object, but it is the AvailabilityDatabases object and not the Server.Databases object.
Returns basic information on the listener found on sqlserver2014a.
Get-DbaAgListener -SqlInstance sqlserver2014a
Returns basic information on the listener found on sqlserver2014a in the Availability Group AG-a.
Get-DbaAgListener -SqlInstance sqlserver2014a -AvailabilityGroup AG-a
This command was created by Viorel Ciucu. You can find Viorel on his blog.