Changed validation from validateset to enum for encoding [Microsoft.PowerShell.Commands.FileSystemCmdletProviderEncoding]"utf8"
Changed validation from validateset to enum for encoding [Microsoft.PowerShell.Commands.FileSystemCmdletProviderEncoding], add compress switch
change to splatting