Examples/Safe_ExternallyControlledFormatString_1.ps1

function Apply-SafeFormat {
    param($value)

    $fmt = "Value is {0}"
    [string]::Format($fmt, $value)
}