Powershell Convert Variable To Array Js Slice W3schools Java