Powershell Replace Text In Array Function In Php