Powershell Array Key Value Javascript Function How To Use