When creating a certificate from a script, an error appears “action timed out - try again, if error continues contact MikroTik support and a supout file (13)”
In this case, the processor is loaded for some time and a certificate is created.
I have to re-run the script, disabling executed lines.
This is not the smartest way to deal with it but at least it works enough for the script to continue. You may need to increase the delay depending on what device you have.