added a new method for process execution and command output delivery.