function Remove-TextStyle { param ( [Parameter(Mandatory = $true)] $Text ) $esc = [char]27 $regex = "$esc" return $Text -replace $regex,'' }