print(f"DEBUG: {command=}") result = subprocess.run( command, # the command to run shell=True, # use the shell to run this command stdout=subprocess.PIPE, # capture the standard output stderr=subprocess.STDOUT, # 2>&1 encoding="latin", # capture the resulting output as text ).stdout