Scheduler ps like agent ps

Use a single output function for both.