Creating Objects In Powershell If Statement