Consider following code:
Function ShowSave-Log { Param ([Parameter(Mandatory=$true)][String] $text) $PSDefaultParameterValues=@{\'Out-File:Encoding\' = \'