Neovim 0.10 provides a new vim.system function.
0.10
vim.system
This should be used instead of io.popen here for modern versions of Neovim.
io.popen