functions/SaveProfile.ps1

function SaveProfile {
    Param($MCProfile)
    $mcProfile |
        ConvertTo-Json |
        Set-Content -Path $Script:ProfilePath -Force
}