Every time I log into my user account I have a command prompt. I'm using the Windows 11 22H2 22621.160 build.
@Windows 10 User Having only this information there is no way to figure out what could be the reason of this problem. All I can tell you is that I have never had such a problem, including with the version of Windows that you mentioned.
If he's getting ONLY the command prompt, no GUI, when he boots Windows, then something is wrong with his startup options.