Powershell Push Element In Array Javascript Function Definition