Start-Transcript -path "C:\PowerShellScript\LOG.txt" -Append
Get-ChildItem -path "C:\Temp\*.*" | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-15))} | Remove-Item
Get-ChildItem -path "C:\Temp\*.*" | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-15))} | Remove-Item
Get-ChildItem -path "C:\Temp\*.*" | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-15))} | Remove-Item
Stop-Transcript