The script was updated to work with new metahumans for UE5.4 however, there are much better scripts out there now, this was a thing when metahuman was relatively new.
Wrote this script to transfer primarily metahuman rig to any sculpted head. Took me a week to make it work. It also works with any bone based rigs (by disabling a few function calls in the script). Written in Python.
Download from my github @revoconner