Does this help? get-item-id-of-the-last-modified-item-in-the-share.html
Transfer the last file modified to another folder with powershell script
Is possible to transfer the last file added to a SharePoint site for a local folder using a PowerShell script? I use the script below to transfer files but always transfer all files.
Result when I execute the script:
Any idea about how can I transfer just the last file added?