Changing file extension of files in a folder if the file was created yesterday.
This is to change the file extension path from .comh to .txt
if ($countFiles.Count -gt 0)
{
foreach ($f in $files)
{
if ($f.CreationTime -gt($(Get-Date).AddDays((-1))))
{
#Changing of extension
}