def METHOD_NAME(self, command: str | list[str], shell=False, **kwargs):
    with self.capture_process(command, shell=shell, **kwargs) as process:
        for line in self.stream_process_output(process):
            self.__display_func(line, end='')
        stdout, stderr = process.communicate()
    return self.modules.subprocess.CompletedProcess(process.args, process.poll(), stdout, stderr)