test/Test-GetFilenameSafeString.ps1

Import-Module TMD.Common -Force
$BadString = "Tony><(){}[]\/:;`~'$('"')!@#$%^&*?.Baker"

Write-Host 'BadString:' -NoNewline
Write-Host $BadString -ForegroundColor Magenta

$FilenameSaveBadstring = Get-FilenameSafeString $BadString

Write-Host 'Filename Safe Badstring: ' -NoNewline
Write-Host $FilenameSaveBadstring -ForegroundColor Yellow