Powershell Add Item To Array Javascript Length Method