Currently I have this script:
$dir = "C:\Users\test1" Get-ChildItem -Path $dir -Recurse -Include '*.PNG' | Sort-Object Exists -Descending | Select-Object -First 10
Which grabs 10 files but now I would like to find the newest folder and then dump each parent folder and the newest data file to a csv. I'm not really sure where to begin.