Powershell Replace Text In Array Javascript Length Function