@MotoX80 Hmmmm . . . I think that your answer (which works) is one where the use of a pipeline isn't warranted. While the number of files to be examined is probably pretty small using the pipeline won't have any noticeable effect on runtime, the use of the Where-Object isn't adding anything since the Get-ChildItem is going to get the name of the file from the pipelined Get-Content.
I suppose this might be a matter of coding style, though.
Here's another way to get the same results:
$Files = get-content .\test.txt
$Files # Just to show the files to be examined. Remove this if you don't want to see that.
Foreach ($File in $Files){
Select-Object -InputObject (get-childitem $File) -Property Name, Length
}
Note: If you don't want to show the contents of the file .\test.txt you make the code even shorter:
Foreach ($File in (get-content .\test.txt)){
Select-Object -InputObject (get-childitem $File) -Property Name, Length
}