How can I send Unreal Console Commands from the command line to a running UE5 editor instance?

I would like to be able to send typical unreal console commands such as:
stat gpu
r.AntiAliasingMethod 0
recompileshaders /Engine/Private/my_shader.usf

I know that there exist UE4Editor-Cmd.exe, and you can do things like:
C:\UE4Editor-Cmd.exe “C:\myGame.uproject” -ExecCmds=“stat gpu”

But this launches a new instance of the editor. I would like to send commands to an already running instance of the editor. Is there a way I can do that?

Have you solved this?

I was searching for something similar and found this after some digging. Posting for clarity. There is an addon called “PythonScriptPlugin” which has a remote_execution function you can use. After installing the plugin you can check out this file for info on the commands:
Engine\Plugins\Experimental\PythonScriptPlugin\Content\Python\remote_execution.py