An application is dropping daily a CSV file into a folder. This file is then picked up by another application. The condition for picking up the CSV file is that the file has to have a specific name and should be a TXT file.
Until now the application dropped once a day this file. So running the current script once a day (which converts the CSV to TXT and gives the specific name) gets the job done. But now, since a new update, the application drops 3 CSV files at the same time. The problem I'm facing now is that those 3 files cant have the same name in the same folder. therefor only one file is picked up by the application.
What i need: I need the PowerShell script to convert just one of the CSV files to TXT and give it the specific name. But since the CSV files contain unique names (DateTime).CSV i cant get this coded in my script.
If the script converts just one file i can schedule this script to once an hour. That will get my job done.