Framework/Helpers/AliasHelper.ps1

$cmdletNames = @('Get-AzSKAccessToken',
        'Get-AzSKSupportedResourceTypes',
        'Set-AzSKPolicySettings',
        'Get-AzSKAzureServicesSecurityStatus',
        'Get-AzSKSubscriptionSecurityStatus',
        'Get-AzSKExpressRouteNetworkSecurityStatus',
        'Get-AzSKControlsStatus',
        'Set-AzSKOMSSettings',
        'Set-AzSKEventHubSettings',
        'Set-AzSKWebhookSettings',
        'Set-AzSKUsageTelemetryLevel',
        'Set-AzSKLocalAIOrgTelemetrySettings',
        'Install-AzSKOMSSolution',
        'Install-AzSKContinuousAssurance',
        'Update-AzSKContinuousAssurance',
        'Uninstall-AzSKOMSetup',
        'Get-AzSKContinuousAssurance',
        'Remove-AzSKContinuousAssurance',
        'Set-AzSKARMPolicies',
        'Remove-AzSKARMPolicies',
        'Set-AzSKSubscriptionRBAC',
        'Remove-AzSKSubscriptionRBAC',
        'Set-AzSKAlerts',
        'Remove-AzSKAlerts',
        'Set-AzSKAzureSecurityCenterPolicies',
        'Set-AzSKSubscriptionSecurity',
        'Remove-AzSKSubscriptionSecurity',
        'Repair-AzSKAzureServicesSecurity',
        'Repair-AzSKSubscriptionSecurity',
        'Set-AzSKUserPreference',
        'Update-AzSKSubscriptionSecurity',
        'Set-AzSKPrivacyNoticeResponse',
        'Get-AzSKInfo',
        'Install-AzSKOrganizationPolicy',
        'Send-AzSKInternalData');

#create aliases
$oldModuleName = [Constants]::OldModuleName;
$newModuleName = [Constants]::NewModuleName;
$cmdletNames | ForEach-Object{
        $newCommandName = $_
        $depreatedCommandName = $_ -replace $newModuleName,$oldModuleName
        Set-Alias -Name $depreatedCommandName -Value $newCommandName
        Export-ModuleMember -Alias $depreatedCommandName
        Export-ModuleMember -Function $newCommandName
    }