Powershell Filter Vs Function