Try
code:
SELECT TOP 5 * FROM Win32_Process WHERE Name=$PROC

You might also want to try sorting by time, would be something like
code:
SELECT TOP 5 * FROM Win32_Process WHERE Name=$PROC ORDER BY Date DESC Time DESC

Not sure about the 'Date' and 'Time' fields, you might need to replace this with the correct names.
_________________________
There are two types of vessels, submarines and targets.