Powershell Create Array Variable Javascript Array Slice