Powershell Push Element In Array Javascript Splice Syntax In Js