As @Hans Z mentions above, the issue is the hex notation is not the actual value that must be encoded, it is an already encoded as hex. So when you try to encode with base64 it fails.
The following CyberChef link breaks down how to the value of the CLI command chain you linked above actually works