Powershell If Array Length Javascript