Windows 10 - Xbox Game Bar doesn't record Command Prompt screen?
I too faced this problem and I got to know that there is another way that we can capture a screenshot using the snipping tool in windows:
Open Snipping Tool. It’s under Start menu > All programs > Accessories. You can also open the Start menu and simply use the search box to find it.
Now click the down arrow next to New. Select Rectangular Snip or Free-form Snip. The former lets you capture a rectangular screenshot and the latter lets you draw any shape on the screen and takes a screenshot of that part.
Once you’ve done that, you can use the Snipping tool to annotate the screenshot if needed and save it to your PC.