'local' dedicated server question

In the Editor we can select num of players, PIE windows and play as client.
This way the editor will run a headless dedicated server session and one session per client (not listener server).

Is there some simple way of doing the same with normal build exe files?

like running <gamename.exe> -server once and <gamename.exe> -client twice?

In other words: do the same that you can do from the editor (run 3 instances) but with the compiled version? (just for local testing on built versions)

The only way I found is creating some widget with ‘run server’ and ‘run client’ then create a session or the client and run, etc but there should be some more straightforward same as in editor example.