(self)
return self
Clears all the commands of the current PowerShell object.
        :return: The current PowerShell instance with all the commands cleared
Clears all the commands of the current PowerShell object.
        :return: The current PowerShell instance with all the commands cleared
Clears all the commands of the current PowerShell object . : return : The current PowerShell instance with all the commands cleared
def clear_commands(self):
        """
        Clears all the commands of the current PowerShell object.
        :return: The current PowerShell instance with all the commands cleared
        """
        self._current_command = None
        self.commands = []
        return self
def clear_commands ( self ) : self . _current_command = None self . commands = [ ] return self