I am having a problem with following command when working with powershell in version 5:
$Folder = "C:\Temp" Get-ChildItem $folder | Sort-Object -Descending -Property LastWriteTime -Top 1
Below error message that i am receiving:
A parameter cannot be found that matches parameter name 'Top'
Any hints how to overcome this issue?