Convert WSL Clipboard Snippet from vimscript to lua

Hey. I’ve switched to neovim but my clipboard wasn’t working. I found this snippet on neovim docs:

let g:clipboard = {
  \   'name': 'WslClipboard',
  \   'copy': {
  \      '+': 'clip.exe',
  \      '*': 'clip.exe',
  \    },
  \   'paste': {
  \      '+': 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
  \      '*': 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
  \   },
  \   'cache_enabled': 0,
  \ }

Here’s my (incorrext) attempt of translating it:

vim.opt.clipboard = {
     'name'= 'WslClipboard',
     'copy'= {
        '+'= 'clip.exe',
        '*'= 'clip.exe',
      },
     'paste'= {
        '+'= 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
        '*'= 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
     },
     'cache_enabled'= 0,
}

How do I properly translate it?

If I understand nvim/runtime/autoload/provider/clipboard.vim correctly, you don’t have to write such settings. Just install win32yank