(self, names, command_types=CommandType.ALL,
                             namespace=None, arguments=None)
return [self._serializer.deserialize(o._xml, meta) for o in output]
Get's metadata of the higher layer command's. This is very similar to
        running the Get-Help cmdlet's but just done on the protocol layer
        instead of through a manual PowerShell pipeline.

        Any wildcard of escaping of strings must conform to the MS-PSRP
        standard which is defined here
        https://msdn.microsoft.com/en-us/library/ee175957.aspx

        :param names: A string or list of strings that specify the commands to
            get the metadata for. Each string can be a wildcard instead of the
            full name.
        :param command_types: The complex_objects.CommandType to filter by, by
            default this will be CommandType.ALL
        :param namespace: A list of wildcard patterns describing the command
            namespaces containing the commands that the server should return
        :param arguments: A list of extra arguments passed to the higher-layer
            above the PowerShell Remoting Protocol
        :return: List of CommandMetadata objects returned by the server
Get's metadata of the higher layer command's. This is very similar to
        running the Get-Help cmdlet's but just done on the protocol layer
        instead of through a manual PowerShell pipeline.
Get s metadata of the higher layer command s . This is very similar to running the Get - Help cmdlet s but just done on the protocol layer instead of through a manual PowerShell pipeline .
def get_command_metadata(self, names, command_types=CommandType.ALL,
                             namespace=None, arguments=None):
        """
        Get's metadata of the higher layer command's. This is very similar to
        running the Get-Help cmdlet's but just done on the protocol layer
        instead of through a manual PowerShell pipeline.

        Any wildcard of escaping of strings must conform to the MS-PSRP
        standard which is defined here
        https://msdn.microsoft.com/en-us/library/ee175957.aspx

        :param names: A string or list of strings that specify the commands to
            get the metadata for. Each string can be a wildcard instead of the
            full name.
        :param command_types: The complex_objects.CommandType to filter by, by
            default this will be CommandType.ALL
        :param namespace: A list of wildcard patterns describing the command
            namespaces containing the commands that the server should return
        :param arguments: A list of extra arguments passed to the higher-layer
            above the PowerShell Remoting Protocol
        :return: List of CommandMetadata objects returned by the server
        """
        if self.state != RunspacePoolState.OPENED:
            raise InvalidRunspacePoolStateError(
                self.state, RunspacePoolState.OPENED,
                "get command metadata"
            )

        if not isinstance(names, list):
            names = [names]

        get_msg = GetCommandMetadata(names, command_types, namespace,
                                     arguments)
        ps = PowerShell(self)
        ps._invoke(get_msg)
        output = ps.end_invoke()

        # first output obj is the MetadataCount obj that tells us how many
        # CommandMetadata objects there are
        _ = output.pop(0)

        # because the main type is generic the serializer will output a
        # GenericComplexObject, we will just manually serialize them to the
        # CommandMetadata object
        meta = ObjectMeta("Obj", object=CommandMetadata)
        return [self._serializer.deserialize(o._xml, meta) for o in output]
def get_command_metadata ( self , names , command_types = CommandType . ALL , namespace = None , arguments = None ) : if self . state != RunspacePoolState . OPENED : raise InvalidRunspacePoolStateError ( self . state , RunspacePoolState . OPENED , "get command metadata" ) if not isinstance ( names , list ) : names = [ names ] get_msg = GetCommandMetadata ( names , command_types , namespace , arguments ) ps = PowerShell ( self ) ps . _invoke ( get_msg ) output = ps . end_invoke ( ) # first output obj is the MetadataCount obj that tells us how many # CommandMetadata objects there are _ = output . pop ( 0 ) # because the main type is generic the serializer will output a # GenericComplexObject, we will just manually serialize them to the # CommandMetadata object meta = ObjectMeta ( "Obj" , object = CommandMetadata ) return [ self . _serializer . deserialize ( o . _xml , meta ) for o in output ]