internal/Get-MtConfirmation.ps1

function Get-MtConfirmation {
    <#
    .SYNOPSIS
    Get confirmation from user.

    .DESCRIPTION
    Get confirmation from user to continue with the operation.

    .EXAMPLE
    Get-MtConfirmation
    #>

    [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', '', Justification = 'Colors are beautiful')]
    [CmdletBinding()]
    param ($message)

    $continue = $(Write-Host $message -ForegroundColor Yellow -NoNewline; Read-Host)
    return $continue -eq "Y"
}