I am trying to find .sql files in a folder and filtering them based on the last write time. Based on the last write time I got 4 files as output.
TestScript1
Something like this:
| sort-object {[int]($_.basename -replace '\D')}