Work permits are issued to companies, not individuals. The company officers would then decide who to give the work permit too. Married or not married makes little difference. The application process is done by a company and their representatives, not by a Thai wife. That Thai wife may be a director of said company, but she would act as a director and not a spouse.
To do this requires a big commitment, opening a company and starting a business is a lot of work here as it is anywhere in the world. You don't need a lawyer or law firm to open it, it's pretty simple, really, but it's a commitment. There are a million websites on how to set up a Thai company, here's one of the better ones.
I should add that I had insurance claims during this time and no one cared that the passport numbers didn’t match up. Because with insurance claims no one looks at your passport anyway.