functions/assets/Get-MiniGameCredits.ps1

function Get-MiniGameCredits {

    $credits = Get-Content -Path "$PSScriptRoot/sounds/credits.json"

    $credits = $credits | ConvertFrom-Json -AsHashtable
    foreach ($entry in $credits.GetEnumerator()) {
        Write-Host -ForegroundColor Cyan " Sound: $($entry.Name)"
        Write-Host -ForegroundColor Yellow " URL: $($entry.Value)"
        Write-Host -ForegroundColor DarkGray "-------------------------"
    }
}