I've got exactly the error.
EDIT: My workaround for this was to disable the convert::tobase64string($bytes) and convert::frombase64string($encodedCert) commands from the PS script
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.