After some surprisingly strong support for "change" seen
...on 14 May 2023 to elect 500 members of the House of Representatives...
Wikipedia's 2023 Thai general election; Government formation mentions some substantial coalition-forming activities later in May. There's nothing listed for June.
If I understand correctly, Thailand's current prime minister is General Prayut Chan-o-cha
...a Thai politician and retired army officer who has served as the Prime Minister of Thailand since he seized power in a military coup in 2014. He is concurrently the Minister of Defence, a position he has held in his own government since 2019.
The first Wikipedia link adds:
The Royal Thai Armed Forces pledged to respect the results of the general election and not launch a coup.
With the premise of my question being that parliament will choose a new prime minister and that it will not likely be General Prayut1, I'd like to ask:
Question: What all has to happen in post 2023 general election Thailand before it can have a new prime minister?
"What all..." means an answer should be more than "they have to form a government and choose one". Thailand's multiparty politics and "oscillations" with the military means that this is not such an easy question to answer.
1still holding my breath as of 2023-07-14