Powershell Custom Object Array Iterator Javascript Substring End