Editor Play Game Start & End using Unreal 4.27's Python

Hello,

I am using UE4’s Python and attempting to automate certain action in Unreal and I am looking for a way to Start and Stop Play-In-Editor (PIE) in different modes
I was referencing Unreal’s Python documentation and found this:

unreal.EditorLevelLibrary.editor_play_simulate()

Which starts PIE in simulate mode (as expected) but how can I change this mode to use “Selected Viewport”?
image