Get-ChildItem "c:\Downloads\test" | where {$_.LastWriteTime -lt (Get-Date).AddDays(-7)} | Remove-Item