Wooo part of it works! In that it can successfully run commands. It
exits right afterwards, though, and none of the piping or file writing
works. We'll get to that later.