function Write-LFLog { param( [string]$Message, [ValidateSet("low","mid","high","critical")] [string]$Severity = "low" ) switch ($Severity) { "low" { $color = "Gray" } "mid" { $color = "Cyan" } "high" { $color = "Yellow" } "critical" { $color = "Red" } } Write-Host "[$Severity] $Message" -ForegroundColor $color } Export-ModuleMember -Function Write-LFLog