Switch between Avatar and Aircraft Mode

Didn’t really find anything to switch between Modes via an external SimConnect Client. Did I overlook something?

I’d like to automate to step to get actually into the Cockpit.
(Why isn’t that a Setting - where to start the Free Flight - Aircraft vs Avatar? Why is everyone forced to start in that Mode?)