No, as user profiles are uniquely named under a registry string.

I want to be able to wildcard that entry i.e. "Fred Bassett".

I think it should look something like this?

$X = WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\" + * + "\13dbbc0c8aa05101a9bb000aa002fc45a)"