3.1.5.4.14 GET_COMMAND_METADATA Message
The syntax of this message is specified in section 2.2.2.14.
The RunspacePool MUST be in an Opened state (section 3.1.1.2.2) when this message is sent. The PowerShell client sends this message to get command metadata from the server. When sending this PowerShell message and receiving responses from the server, the client uses similar data structures that are used for executing a pipeline (section 3.1.4.3).
The PowerShell client constructs a GUID to represent the pipeline, initializes the pipeline state (section 3.1.1.3.2) to Running, constructs the message (section 2.2.2.14), and sends it to the PowerShell server.
For more details on how a PowerShell client gets command metadata from a PowerShell server, see to section 3.1.4.5.