I used this line command to search ".xlm" files in "C:\Temp" and the result print fullname path in file "result.txt":
(Get-ChildItem "C:\Temp" -Recurse | where {$_.extension -eq ".xml"} ).fullname > result.txt
In my tests, this syntax works beautiful for me.