Process Scheduling Information Extraction

I want to extract the process having highest utilization on each processor core
and then output its information (PID etc.) to a file. How can I do it by using either top or ps command?

Thanks.

What exactly do you want beyond what top -n1 does provide you with?