Get-Content "filetest.txt" | ForEach-Object {$t1 = get-date -Format hh:mm:ss.fff; $content = Get-ChildItem $_ | Select-Object -First 1 *; $t2 = get-date -Format hh:mm:ss.fff; echo $t1`t$t2`t$_ }