Create Json Array Powershell If Statement