Delete files older than 7 days
forfiles -p "C:\DBMOTION\EHR Agent\Logs\PROD" -s -m *.* /D -7 /C "cmd /c del @path"