Code verified. Module I not tested - sorry have much work. Only had read code.
Very easy, very native code, and clear.
Native PS code is security OK.
But I'm not recommended to use service "Have I Been Pwned". This options you can disable in module (I'm not sure. But I saw conditions in code to...