PowerShell - Automation Patterns
Identify the error in this PowerShell script intended to delete log files older than 15 days:
Get-ChildItem -Path 'C:\Logs' -Filter '*.log' | Where-Object { $_.LastWriteTime -gt (Get-Date).AddDays(-15) } | Remove-Item