Start playing different project than clicked

I’m looking for a solution to start playing in an engine, but different project than it was clicked in. I have two projects opened, by clicking on play on the first one it should start playing both of them. I cannot use Python to change window and then force it to click Alt+P, but I can use CMD or UE4. I managed to pack both projects, then by CMD start second app when the first one is opening, but I need it both in engine.