Although it is said that HM-10 "can replace [[HC-05?]], HC-06, HC-07 etc", it is not exactly like that.
AT+PSWD
to [[HC-05?]] and AT+PASS
to HM-10.AT+NAME=ProgArm
, but in HM-10 it is AT+NAMEProgArm
.These are some minor issues, but it means that you cannot simply replace [[HC-05?]] with HM-10 or vice versa.
We have made a script that can configure both. It will detect whether it is HM-10 or [[HC-05?]] automatically.