since you are using batch, i am not going to suggest you use entirely vbscript, but you can save a vbscript that does the 1 day old check and call it in your batch
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objArgs = WScript.Arguments
strNumDays=objArgs(0)
strFolder = objArgs(1)
Set objFolder = objFSO.GetFolder(strFolder)
For Each efile in objFolder.Files
If DateDiff("d",eFile.DateLastModified,Now) >= strNumDays Then
WScript.Echo "file found that is " & strNumDays & " day(s) old: " & efile
WScript.Echo eFile.DateLastModified
' objFSO.DeleteFile(eFile) 'deletion
End If
Next
save it as find1dayold.vbs and in your batch, use it like
@echo off
.....
cscript /nologo find1dayold.vbs 1 "c:\Folder_to_check"
.....
if you need return values, use a for loop to get the values