https://jon.sprig.gs/blog/post/3091
How to capture stdout and stderr from a command in a shellscript without preventing piped processes from seeing them