79588240

Date: 2025-04-23 09:18:32
Score: 0.5
Natty:
Report link

i think you're filtering based on something not directly a property or want to evaluate the whole object (like a string or name after ForEach-Object), you must use the scriptblock form:

Get-ChildItem | ForEach-Object Name | Where-Object { $_ -match '\.(txt|md)$' }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arian Fm