Well, that's helpful. The earlier error:
looks to be directly related to the content of the PowerShell error:
Ausf\x81hrung
So we have two problems:
- Certbot code, when calling hooks, is not handling decoding the output of the hooks properly. This needs to be fixed, but won't make the hook work for you.
- Your system has disabled PowerShell scripting in some way which interferes with Certbot launching the hooks. I'm afraid I don't know much about Windows policies and it's not clear to me whether there's anything we can do about this in Certbot.