Add the -p (pipe) flag to the pmrun command. When pmrun runs as a cron job, the parent process will run and close while the command runs, so during redirect of stdout from the pmrun command, the parent process no longer exists. Keeping it in pipe mode allows for the command to collect and redirect stdout.