internal/functions/Get-CFXLogFilePath.ps1

function Get-CFXLogFilePath {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $true)]
        [string] $LogFolderPath
    )

    $dateTime = Get-Date -Format 'yyyyMMdd-HHmmss'
    $path = Join-PSFPath $LogFolderPath "Convert-CFXUser_$dateTime.log"
    Set-Content -Path $path -Value "Log file created at $dateTime." -ErrorAction Stop
    Write-PSFMessage -Level Verbose -Message "Created Log file under: $path"
    $path
}