Javascript Arraylist Add Function To Powershell Update