Public/New-UserPrompt.ps1

function New-UserPrompt
{
    <#
    .DESCRIPTION
        Display a basic message box to the screen

    .EXAMPLE
        New-UserPrompt -BodyText "Example Text" -TitleText "Example Text"

    .NOTES
        Created by: Jon Anderson
        Modified: 2023-07-10
    #>

    [CmdletBinding()]
    param(
        [Parameter(Mandatory=$True)][ValidateNotNullOrEmpty()]
        [String[]]$BodyText,
        [Parameter(Mandatory=$True)][ValidateNotNullOrEmpty()]
        [String[]]$TitleText
    )

    Write-LogEntry -Value "Displaying a message box to the screen" -Severity 1
    (New-Object -ComObject Wscript.Shell).Popup("$BodyText",0,"$TitleText",0x0 + 0x30) | Out-Null
}