The console commands do not execute from Python if optional PlayerController parameter is not filled.
Tested in 4.20.3 (CL- 4369336), 4.21.2 (CL - 4753647), 4.22 (CL - 4902349)
import unreal editor = unreal.EditorLevelLibrary.get_editor_world() console_command = 'stat fps' unreal.SystemLibrary.execute_console_command(editor, console_command)
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-69604 in the post.