Powershell Custom Object Array Typescript Vs Javascript