It looks like in Mojave (and maybe later High Sierra releases) the “ps” command can sometimes return an empty process list (and no error message, just the standard header line)… 🤔