Powershell Create Array Variable Javascript Array Splice