I’m testing a script for new PiHole version 6
You can find more information in the link
PiHole Version 6 integration script