Get-Member requires an object.
PS C:\Users\richm> ft | gm
gm : You must specify an object for the Get-Member cmdlet.
At line:1 char:6
+ ft | gm
+ ~~
+ CategoryInfo : CloseError: (:) [Get-Member], InvalidOperationException
+ FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand
PS C:\Users\richm> "x" | ft | gm
TypeName: Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData
Name MemberType Definition
---- ---------- ----------
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
ClassId2e4f51ef21dd47e99d3c952918aff9cd Property string ClassId2e4f51ef21dd47e99d3c952918aff9cd {get;}
formatEntryInfo Property Microsoft.PowerShell.Commands.Internal.Format.FormatEntryInfo, System.Management.Automation, Version=...
outOfBand Property bool outOfBand {get;set;}
writeStream Property Microsoft.PowerShell.Commands.Internal.Format.WriteStreamType, System.Management.Automation, Version=...
Here's a very simple example of how to see all the methods and properties for a string object:
"x" | gm * -force
Why not download and work your way through this free PDF? You'll learn a lot about PowerShell. Windows-PowerShell-4