Replacing '?' with 'Where-Object' to improve code readability as per best practice