What command should be set for the exe program to run on which cpu and gpu?

On a multi-CPU, multi-graphics machine

I’m not sure there is one out of the box but check here:
Command-Line Arguments in Unreal Engine | Unreal Engine 5.5 Documentation | Epic Developer Community.

Is that the setup?

[/Script/Engine.RendererSettings]
r.GraphicsAdapter=1