There is a command in Linux that outputs system utilization called time. Is there a Windows equivalent? Or how else can I manually use the task manager commands in a batch file?
I found a tool which -- while not a direct port -- appears to give you the information you desire.
C:\> timemem "find \"e\" myfile.txt" ---------- MYFILE.TXT >ONE Homo sapiens alu >TWO IUB ambiguity codes >THREE Homo sapiens frequency Process ID: 476 elapsed time (seconds): 5.81 user time (seconds): 0.55 kernel time (seconds): 0.30 Page Fault Count: 3150 Peak Working Set Size (kbytes): 12420 Quota Peak Paged Pool Usage: 78324 Quota Peak Non Paged Pool Usage: 2240 Peak Pagefile Usage: 917504
Much detail is available in readme-timemem.txt, form where I copied the above example.
(found from this neglected answer over on superuser)