I need a PowerShell script that can access a file\'s properties and discover the LastWriteTime property and compare it with the current date and return the date differe
Slightly easier - use the new-timespan cmdlet, which creates a time interval from the current time.
new-timespan
ls | where-object {(new-timespan $_.LastWriteTime).days -ge 1}
shows all files not written to today.