def _run_local_command(self, command, *args):
        """
        Runs the given command and returns the output stream
        """
        # String output
        str_output = StringIO()

        # Format command
        if args:
            command = command.format(*args)

        # Run command
        self.shell.execute(command, stdout=str_output)
        return str_output.getvalue().strip()