coollogan,
а просто использовать немного перереботанный оригиналиный скрипт не хотите ?
Код:

$wordCounts = @{}; Get-Content .\data.txt | ForEach-Object { $wordCounts[$_] ++ } ; $wordCounts.GetEnumerator() | Sort-Object -Property Value
Код:

Name Value
---- -----
4 1
2 2
1 4
Код:

for N in $(seq 1 1 10000) ; do cat data.txt >> bigdata.txt; done
Код:

$wordCounts = @{}; Get-Content .\bigdata.txt | ForEach-Object { $wordCounts[$_] ++ } ; $wordCounts.GetEnumerator() |
Sort-Object -Property Value
так же бысто
[code]
Name Value
---- -----
11 1691
4 1692
2 3384
1 3386
[/CODE ]