title: find latest file name and copy as renamed file in the same folder
body: <p>I see some kind of similar posts but unfortunately this is not working for me so far. I would like to get the latest backup file (randomly generated) and then copy and rename the file in the same folder with fixed name so that I can schedule the restore job.</p>
  
  <p>Backup files are like:</p>
  
  <p>Fin123.bak<br>
  Fin125.bak<br>
  Sales456.bak<br>
  HRF100.bak  </p>
  
  <p>I would like to get the latest file (by creation date) and then copy and rename the file like Fin.bak. In the above files, Fin125.bak is latest backup file which I would like to copy and rename as Fin.bak. The powershell script should ignore all other files like Sales, HR, etc. Only files starting with Fin and having the latest creation date.</p>
  
  <p>Any help is greatly appreciated.
  Thanks
  Muhammad</p>