Creating Scripts For Powershell Array Of Objects Javascript