Powershell Remove Empty Lines In Array Javascript Length Of List