вы не поверите, но
Код:

$paths = @()
$paths += Get-ChildItem C:\ -Filter "TakogoFiltraNet"
$paths += Get-ChildItem C:\ -Filter "ITakogoFiltraTogeNEt"
PS C:\Users\truealex> $paths.length
2
PS C:\Users\truealex> $paths[0]
PS C:\Users\truealex> $paths[1]
PS C:\Users\truealex> $paths.count
2
я в шоке
Код:

$paths = @()
$paths +=Get-ChildItem C:\
$paths
Каталог: C:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 01.02.2011 15:22 app
d---- 13.04.2011 13:59 avn_clb
d---- 09.01.2012 17:36 Intel
d---- 14.07.2009 7:20 PerfLogs
d-r-- 30.01.2012 11:49 Program Files
d-r-- 30.01.2012 11:51 Program Files (x86)
d-r-- 06.02.2012 17:57 Users
d---- 13.02.2012 19:03 Windows
-a--- 10.01.2012 17:06 149 ElsoftOffice.log
$paths.count
9