Private/Write-TelemetryPrompt.ps1

function Write-TelemetryPrompt
{
    $telemetry_message = @'
Please consider enabling telemetry to help us improve MSOnlineExt!
 
Join with the following command:
 
Set-MSOnlineExtTelemetryOption -Participate 'Yes'
 
To disable this warning and set your preference, use the following command and then reload the module:
 
Set-MSOnlineExtTelemetryOption -Participate 'No'
 
For more information run the command:
 
Get-Help about_MSOnlineExt_Telemetry
'@


    Microsoft.PowerShell.Utility\Write-Warning -Message $telemetry_message
}