Refactored Codes
Find the oldest file in a folder and it's sub folders
We are with friends, and we want to see the oldest video recoding. The video that we first recorded for the first time. How are we going to do that.? We have multiple ways to do it. We first find all the files.
Get-ChildItem -File -Path .
Method 1 :  Sort on the Creation time and select the Top element.
 Get-ChildItem -File -Path . | Sort-Object -Property CreationTime -Top 1;

 Get-ChildItem -File -Path . -Recurse | Sort-Object -Property CreationTime -Top 1;
Method 2 Sort on the creation time.
Sort-Object -Property CreationTime
And, Select the first element.
Get-childItem -File -Path .| Sort-Object -Property CreationTime | Select-Object -First 1

Get-childItem -File -Path . -Recurse | Sort-Object -Property CreationTime | Select-Object -First 1
Method 3 : Sort on the creation time in descending order
Sort-Object -Property CreationTime -Descending
And Select the last object.
Get-ChildItem -File -Recurse | Sort-Object -Property CreationTime -Descending | Select-Object -Last 1;

Get-ChildItem -File | Sort-Object -Property CreationTime -Descending | Select-Object -Last 1;