Powershell Remove Empty Array Elements Javascript