Set-TwilioCredential.ps1

function Set-TwilioCredential
{
    param(
    [string]
    $Name = "Default",
    
    [Parameter(Mandatory=$true)]
    [Management.Automation.PSCredential]
    $Credential
    )
    
    
    process {
        
        Add-SecureSetting -Name "TwilioAccount$Name" -Credential $Credential
    } 
}