[Immediate Help] First Time Visa Run to Thailand

I am a solo backpacker from India looking to extend my stay in Malaysia. (I'm currently on the eNTRI visa 15 days)

The issue is I really want to stay longer in malaysia but cannot because of this 15 day visa. I have a friend here and we've been traveling since 2 months and have the option of traveling another 2 weeks together so figured we'd take it.

One way I see doing this is:
Flight to thailand and come back a day or two later and apply for VOA. However I'm not sure how long I have to stay in Thailand because maybe it's not allowed.

WHAT IS WAY TO GET THAILAND MY SECOND HOME VISA.
IS IT POSSIBLE BY INVESTMENT.
PLEASE REPLY