There's some KiXtart shorthand going on that you may have missed.

This line is creating an array of filenames called $strFile:
Quote:

$strFile = "appevent.evt","secevent.evt","sysevent.evt"




The next line is simply a For..Next structure which runs for each item in the $strFile array:
Quote:

For each $element in $strFile



On each iteration it assigns the next array element to the variable $element.

This means, that on the first pass $element is "appevent.evt", on the second pass it is "secevent.evt" and so-on.

Les is using the loop twice, once to get some info via FSO, and then again to get some info via KiXtart built-ins.