gci = get-childitem $target="Target directory" Developing an index of all files within in a folder (including sub-folders) gci $target -recurse
| select-object "lastwritetime","Name" | sort-object "last writetime" -descending | out-file $target\index.txt
develop an index for the files contained with the target directory (ONLY) gci $target | select-object "lastwritetime","Name" | sort-object "lastwritetime " -descending | out-file $target\index.txt