This shows me a bar that updates as each of the files gets processed, but at the end I get back no average file size data. Clearly, I'm doing something wrong, because I figure trying to hack the Where-Object to print a progress statement is probably a bad idea(tm).

Since there are millions and millions of images, this query obviously takes a VERY LONG time to work. get-childitem is pretty much going to be the bulk of query time, if I understand things correctly. Any pointers to get what I want? AKA, my result would ideally be:

Im curious, as Im not as familiar with powershell. The % with expression doesnt change the value of the item being piped or something? Can you explain the expression so I can get greater understanding?
–
TejsMay 2 '11 at 21:21

Thanks for testing it. It's true, measure-object takes inputobject parameter and I was passing to it the array of objects. Using the pipeline all is resolved. Thanks again. I'm glad you like my answers. +1 for cheered up my answer :D
–
Emiliano PoggiMay 2 '11 at 23:12