In that case, because that process failed, those commands are also failing and your system seems to be very corrupt, I think the best option is to perform an in-place repair with the Windows 11 ISO.
Please follow the steps, this is then not like re-installing Windows, it is just like an update and your personal files, settings and installed software will not be affected.
Click this link:
https://www.microsoft.com/software-download/windows11
to download the Windows 11 ISO
When the ISO file completes downloading
Disconnect from the Internet
Disconnect all external devices with the exception of a mouse or keyboard.
Temporarily disable any 3rd party Anti-virus you may have installed
Then, in Windows File Explorer, double click the ISO and then run Setup.exe and select the Install option.
Very Important - ensure you select the option to keep your files and apps.