A pipeline is a series of commands connected by pipeline operators
(|)(ASCII 124). Each pipeline operator sends the results of the preceding
command to the next command.
Pipelines always sends an Object which is why we are able to use Methods and Properties.
Every action you take in Windows PowerShell occurs within the context of
objects. As data moves from one command to the next, it moves as one or
more identifiable objects. An object, then, is a collection of data that
represents an item. An object is made up of three types of data: the
objects type, its methods, and its properties.
When working with objects, you can use their properties and methods
in commands to take action and manage data.
When commands are combined in a pipeline, they pass information to each
other as objects. When the first command runs, it sends one or more
objects down the pipeline to the second command. The second command
receives the objects from the first command, processes the objects, and
then passes new or revised objects to the next command in the pipeline.
This continues until all commands in the pipeline run.
Methods
A "method" is a set of instructions that specify an action you can perform on the object. For example, the FileInfo object includes the CopyTo method that copies the file that the FileInfo object represents.
Properties
Most objects have properties. Properties are the data that is associated with an object. Different types of object have different properties. For example, a FileInfo object, which represents a file, has an IsReadOnly property that contains $True if the file the read-only attribute and $False if it does not. A DirectoryInfo object, which represents a file system directory, has a Parent property that contains the path to the parent directory.
Get-Member
The Get-Member cmdlet gets the members, the properties and methods, of objects.
Status Name DisplayName
------ ---- -----------
Running AppHostSvc Application Host Helper Service
Stopped AppIDSvc Application Identity
Running Appinfo Application Information
Running Apple Mobile Device Service Apple Mobile Device Service
Stopped AppMgmt Application Management
Stopped AppReadiness App Readiness
Stopped AppVClient Microsoft App-V Client
Stopped AppXSvc AppX Deployment Service (AppXSVC)
Name : AppHostSvc
DisplayName : Application Host Helper Service
Status : Running
DependentServices : {}
ServicesDependedOn : {}
CanPauseAndContinue : True
CanShutdown : True
CanStop : True
ServiceType : Win32OwnProcess, Win32ShareProcess
Name : AppIDSvc
DisplayName : Application Identity
Status : Stopped
DependentServices : {applockerfltr}
ServicesDependedOn : {RpcSs, CryptSvc, AppID}
CanPauseAndContinue : False
CanShutdown : False
CanStop : False
ServiceType : Win32ShareProcess
Name : Appinfo
DisplayName : Application Information
Status : Running
DependentServices : {}
ServicesDependedOn : {RpcSs, ProfSvc}
CanPauseAndContinue : False
CanShutdown : False
CanStop : True
ServiceType : Win32OwnProcess, Win32ShareProcess
Name : Apple Mobile Device Service
DisplayName : Apple Mobile Device Service
Status : Running
DependentServices : {}
ServicesDependedOn : {Tcpip}
CanPauseAndContinue : False
CanShutdown : False
CanStop : True
ServiceType : Win32OwnProcess
Name : AppMgmt
DisplayName : Application Management
Status : Stopped
DependentServices : {}
ServicesDependedOn : {}
CanPauseAndContinue : False
CanShutdown : False
CanStop : False
ServiceType : Win32ShareProcess
Name : AppReadiness
DisplayName : App Readiness
Status : Stopped
DependentServices : {}
ServicesDependedOn : {}
CanPauseAndContinue : False
CanShutdown : False
CanStop : False
ServiceType : Win32OwnProcess, Win32ShareProcess
Name : AppVClient
DisplayName : Microsoft App-V Client
Status : Stopped
DependentServices : {}
ServicesDependedOn : {AppvVfs, RpcSS, AppvStrm, netprofm}
CanPauseAndContinue : False
CanShutdown : False
CanStop : False
ServiceType : Win32OwnProcess
Name : AppXSvc
DisplayName : AppX Deployment Service (AppXSVC)
Status : Stopped
DependentServices : {}
ServicesDependedOn : {rpcss, staterepository}
CanPauseAndContinue : False
CanShutdown : False
CanStop : False
ServiceType : Win32OwnProcess, Win32ShareProcess