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