3.2.5.3.3 Rules for the wxf:Command Message
A client uses the wxf:Command message to execute a pipeline on the server, as described in section 3.1.5.3.3.
Upon receiving this message, the server attempts to get the RunspacePool instance, using the ShellID specified in the wxf:Command message, from the WSMV shell to the RunspacePool table (section 3.2.1.1.1). If a RunspacePool instance is not found in the table, or if the RunspacePool is not in an Opened state, then the server MUST send a wxf:Fault message.
If a corresponding RunspacePool instance is found, then the server creates a pipeline instance and initializes its state to NotStarted. The server then adds the pipeline instance into the WSMV command to pipeline table (section 3.2.1.1.2). If a RunspacePool instance is not found, then the server MUST send a wxf:Fault message.
The wxf:Command message MAY contain "Arguments", as described in section 3.1.5.3.3. If Arguments data is present in the message, the data will be in Base-64 encoded format. The server decodes this Base-64 data and processes the message as per the rules described in section 3.2.5.1.
Upon successfully processing a wxf:Command message, the server MUST send a wxf:CommandResponse message (section 3.2.5.3.4).