We have requirement wants to ensure whether file name start with 1a.xxxx_py.csv and 1a.xxxxx_CY.csv files are exist from folder. If files are exist will do further steps else send notification email to business stating that required files does not exist.
Note-File name should not be hardcoded
Please let me know any possibilities in PowerShell scripts or batch scripts? Please share the scripts.