#search
cmd /r dir /s /b c:\tmp\*.xml
get-childitem .\ -recurse | where {$_.extension -eq ".txt"} | foreach-object { Write-Host $_.FullName }
$filename = "c:\tmp\webapp1.zip"; If (Test-Path $filename) {Remove-Item $filename}; Compress-Archive -Path .\* -DestinationPath c:\tmp\webapp1.zip