Hi Expert,
I am trying split the country and year from the file name order by LastWriteTime and wants to move remaining file to archive folder by year wise but can only filter the year not and not country name

small correction,
After first word of the file name does not contain '_' so difficult to find country and year order by and it is not select statement remaining file has to go to archive folder $dest. in the below case 2 nd row file should go to archive

Select-Object -Skip 1 | Move-Item -Destination $destdir -Force this statement moving the files to Archive for which year and max last modified date and I just wanted to include country name into it which unable to do it