I\'ve written a script that will be used for archiving log files from a server. I\'m in pretty good shape with everything but the recursiveness or not of Get-ChildItem...
The answer is in the full description of the command (get-help get-childitem -full):
The Include parameter is effective only when the command includes the Recurse parameter or the path leads to the contents of a directory, such as C:\Windows\*, where the wildcard character specifies the contents of the C:\Windows directory.
So the following would work without recurse.
PS C:\foo> Get-childitem -path "c:\foo\*" -Include *.txt