It remains to be an issue you need to take up with the script's author(s). The original author of PnP is, afaik, inactive nowadays but someone else took up the job of modernising it to work with current versions.

Surely the quicker way to get an answer is to test out the script with 6.31?