I am searching for a file in all the folders.
Copyforbuild.bat is available in many places, and I would like to search recursively.
Copyforbuild.bat
$Fil
Try this:
Get-ChildItem -Path V:\Myfolder -Filter CopyForbuild.bat -Recurse | Where-Object { $_.Attributes -ne "Directory"}