have Powershell get-childitem return files only
In Powershell 3.0, it is simpler,
gci -Directory #List only directories
gci -File #List only files
This is even shorter,
gci -ad # alias for -Directory
gci -af # alias for -File
Try this:
gci . *.* -rec | where { ! $_.PSIsContainer }