Public/Intune/Get-KriticalUtcmStringFirstCharacterToLower.ps1

<#
.SYNOPSIS
    Kritical.UTCM wrapper over Microsoft365DSC helper Get-StringFirstCharacterToLower
    (category: Intune, module: M365DSCDRGUtil).

.DESCRIPTION
    Thin delegating passthrough — logic stays in Microsoft365DSC upstream;
    Kritical.UTCM provides the friendly namespace + citation registration.

    Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling.

.NOTES
    Category: Intune
    Module: M365DSCDRGUtil
    Params: 1
#>

function Get-KriticalUtcmStringFirstCharacterToLower {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [String] $Value
    )

    if (-not (Get-Command -Name 'Get-StringFirstCharacterToLower' -ErrorAction SilentlyContinue)) {
        throw '[KriticalUtcm] Get-StringFirstCharacterToLower not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run'
    }
    try {
        & 'Get-StringFirstCharacterToLower' @PSBoundParameters
    } catch {
        Write-Error ('[KriticalUtcm/Get-KriticalUtcmStringFirstCharacterToLower] ' + 'Get-StringFirstCharacterToLower' + ' failed: ' + $_.Exception.Message)
        throw
    }
}