so 21H1 i.e, is your build 19043.1288 because that would mean the screen you posted has been retired and you are part way into the W11 upgrade?
since winver is working your system must just be blocking normal script commands and most the time that happens because people start mucking about in the registry so we need to know;
- your system
- what you changed &
- what 3rd party system tools
without that the best option is to replace the harddrive [for backup] & install a fresh Windows