Windows 11 provides a rich GUI, but it also supports various command line interfaces (CLIs) through a modern Terminal app.
The Event Viewer logs events that lead to errors. The event logs can help you understand what triggered or where exactly the issue is coming from so you can be apply the relevant troubleshooting steps ...