Great plan. Do your research. Read the other postings. This is discussed daily on the forums. Go visit Thailand and the schools you are interested in. You probably should make several visits because Thailand is way way different than in the USA.
After all of that, then the school can advise you how to obtain your visa.
You do know that you will have to go to classes regularly?