This gets the output that I am looking for with one small defect. I want to be able to get the key of the hashtable, and use it as a file (type DirectoryInfo).

This is a problem that is related to hashtables in powershell in general (as far as I can tell at least, and not specific to the code that I have above (it is included because it is how I came across the need for this, it is not to long, and comments on how to make it "more idiomatic" would be appreciated).

Is there a way that I can do the reverse? (take an entry from the table and then use it as a file) Would it make sense to convert it to a list of some sort first (how would I do that)
–
soandosJul 16 '12 at 21:31

I'm not even sure I understand what exactly you do there.
–
JoeyJul 16 '12 at 21:32

Delete files that are longer than 5 min long (if they were mp4 files property 27) and the like
–
soandosJul 16 '12 at 21:34