CB-5680 Improve console logging when scripts invoked in child process