Hi, I am Dave, I will help you with this.
If you are blocked by a password in the Recovery Environment, then, you will need to create a bootable Windows 10 USB on another working PC and boot your PC from that, then rather than installing Windows 10, select ‘Repair this Computer’ that will give you access to the Recovery Environment from there
In the Recovery Environment on the USB, you will not be blocked by a password.