Ok, I've tried again, and I got the same error with the 'shsudo typo in the error output... and also after the second command I noticed it's like that.
What I did was:
1. type this
sudo chmod +x /etc/lego/renew-certificate.sh than enter
2. type this
sudo cat /etc/lego/renew-certificate.sh this and than enter
3. lastly this
sudo /etc/lego/renew-certificate.sh and then enter
As you can see also in the screenshot I didn't did the typo - not sure why it's happening..