I have written a below PowerShell script to get items of a library for SharePoint 2013
$spData = $web.Lists["EmployeeDocument"] -as [Microsoft.SharePoint.SPDocumentLibrary]
$fieldsItems = $spData.Items
$result = $fieldsItems | select Title,FolderCategory
$filterItem = $fieldsItems | ? {$_.FolderCategory -eq "Help"}
This script does not return the result and filter of the Library.
Where as, below script return 3 items count:
$spData.Items.Count
Thanks in advance