8,330 questions
Is this a homework project??? I hope not. You won't learn much this way.
$n = get-content C:\junk\FileA.txt
$h = @{}
"1.txt","2.txt","3.txt" |
ForEach-Object{
Get-Content $_ |
ForEach-Object{
if ($n -contains $_){
$h.$_++
}
}
}
$h