Functions/Internal/Remove-UnwantedFilenameChars.ps1
function Remove-UnwantedFilenameChars { [CmdletBinding()] param ( [Parameter( Position = 0, Mandatory = $true, ValueFromPipeline = $true )] [string] $stringToClean ) process { $stringToClean -replace '[\W]','' } } |