I wouldn't bother trying to fix that Certbot install. The EFF dropped support for Windows about 2 years ago. You should switch to an ACME Client that supports Windows. See: Certbot Discontinuing Windows Beta Support in 2024
Good options for a stand-alone ACME Client are:
- Certify the Web (gui) https://certifytheweb.com/
- posh-acme (powershell) Home - Posh-ACME
- simple-acme (command line) https://simple-acme.com/
Given you are using Apache another option is its mod_md feature. This is a built-in ACME Client. If you are reasonably skilled at Apache admin this might be the easiest. See
The Apache docs are a good reference and install overview: mod_md - Apache HTTP Server Version 2.5
The github for mod_md has very good examples: GitHub - icing/mod_md: Let's Encrypt (ACME) in Apache httpd