$AllocatedKey = $AllocatedKey -Replace "-", ""

$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"

$ExpansionRegistryPath = "$VirtualStore\WOW6432Node\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\ergc"
New-Item -Path $ExpansionRegistryPath
Set-ItemProperty -Path "$ExpansionRegistryPath" -Name "(Default)" -Value $AllocatedKey -Force