Powershell Object Array To String Javascript Substring Until Character