Why not use the existing SysInternals tool
Process Monitor. It can filter out particular applications and log the data to file, so you could parse that file for information later if you needed to.
SysInternals has a large number of excellent
free system utilities.