Is it possible to implement the following functionality only by the command line or powershell?

There is a folder. There are created every day 5-6 files. In advance how many files there are created, it is impossible to know, but usually 5 or 6. May be such that they are not every day, for example, it may be that June 1 was created, 2nd and 3rd no, 4th was again created.
I need to copy these files, and copy only those whose creation date is the closest to date.
Here is a real example

If you clearly describe what I want:
1 Sort files by date created (or modified)
2 Take the files with creation date closest to today's date
3 to Copy these files to another folder
March 23rd 20 at 19:03
4 answers
March 23rd 20 at 19:05
Forces powershell without problems. Easy enough to write your own algorithm.
Thank you. If not difficult, can you recommend a website where you can quickly raise knowledge on power shell from scratch? - Rafael27 commented on March 23rd 20 at 19:08
@Rafael27and Google what? redneck supporting? - reece.Hirt commented on March 23rd 20 at 19:11
@reece.Hirt, Gul gives a bunch of sites. A knowledgeable person will immediately tell you normal site. The only difference in this. - Rafael27 commented on March 23rd 20 at 19:14
@Rafael27, recently wrote in powershell just googled specific things, also: "powershell get file create date" of the first position of rendition is usually answered questions. - Keshawn3 commented on March 23rd 20 at 19:17
March 23rd 20 at 19:07
March 23rd 20 at 19:09
For these tasks I recommend to use Powershell
You can use the script given below. In the script you must replace the path in the variable $Folder to the path where the file you want to copy, and $NewFolder the folder path where you want to copy.
Brief description of the script, it takes all files in the specified folder, sorts by creation date, takes all the files whose creation date is the latest and the same as the day of creation and copies it to the specified folder.

$Folder = "C:\temp\" #what folder check the files by date
$NewFolder = "c:\temp11" # what folder copy selected files
$Files = Get-ChildItem -path $Folder -file | Select-Object Name, CreationTime | Sort-Object CreationTime -Descending
$Date = $Files.CreationTime[0] | Get-Date-Format dd.MM.yy
Foreach ($File in $Files)
{$TempDate = $File.CreationTime | Get-date-Format dd.MM.yy
$FileName = $
If ($TempDate -eq $Date)
{Copy-Item-path "$Folder$FileName" -Destination "$NewFolder"}}
March 23rd 20 at 19:11
You would OSes indicated.

And so there is a great Unix command "find", and ported to Windows. Can search by date created or modified file. The resulting list of files can be fed to the script; or through the option directly to the exec team.
Google "man find".

Find more questions by tags cmd/batPowerShell