1. To count particular of objects in a
model:
[System.IO.Directory]::GetFiles("C:\Packages\ESS_WBS\ESS_WBS\AxClass\","*.xml").count
2. To get list of objects modified in past
120 days:
Get-ChildItem -Path "C:\Packages\*" -Recurse
-Include *.xml |select LastWriteTime, FullName,Name| Where{$_.LastWriteTime –ge
(Get-Date).addDays(-120)} |Sort-Object lastWriteTime -descending| out-gridview