(self, command)
return self
Add a Command object to the current command pipeline.

        :param command: Command to add
        :return: The current PowerShell object with the Command added
Add a Command object to the current command pipeline.
Add a Command object to the current command pipeline .
def add_command(self, command):
        """
        Add a Command object to the current command pipeline.

        :param command: Command to add
        :return: The current PowerShell object with the Command added
        """
        self.commands.append(command)
        self._current_command = command
        return self
def add_command ( self , command ) : self . commands . append ( command ) self . _current_command = command return self