This script, saved to a .ps1 file which I run as an admin is not working:-
$x = Get-Content -Path C:\Users\SKY\Desktop\curede*.
[array]::Reverse($x)
$x | Out-File -FilePath C:\Users\SKY\Desktop\curede*.
Please tell me how to reverse the order of the lines in multiple files of a folder with a PowerShell script.