Utilities/Update-RelicData.ps1

$relicData = &$PSScriptRoot\Get-RelicDataJSON.ps1 | convertFROM-Json

# Create a hashtable to store the processed data
$Relics = @{}

# Iterate over each key-value pair in the JSON object
foreach ($key in $relicData.PSObject.Properties.Name) {
    # Create a new hashtable with selected properties
    $Relics[$key] = @{
        Vaulted = $relicData.$key.Vaulted
        Drops   = $relicData.$key.Drops
    }
}

$path = ($PSScriptRoot | Split-Path) + "\Data\RelicsData.xml"
$Relics | Export-clixml -Path $path -Depth 100