Using Foreach Command In Powershell If Statement