So far I have something that looks like this:
$dir = "C:\Users\testfolder" Get-ChildItem -Path $dir | Sort-Object Exists -Descending | Select-Object -First 10
So I have been looking and from what I can tell I need something after sort-object but I cant figure anything out.