Use the “Shot” console command.
The screen shot will show up in the Saved/Screenshots directory in PIE, or user appdata folder if installed.
You can also pass in a custom name in the HighResShot command:
Or, if you want to specify resolution and filename/path, use HighResShot with filename=: