Real estate and S Corp

thank you for your great podcasts and YouTube videos.
my question is about potentially buying real estate and how to make it a business write off if it’s even possible
The business is an S Corp.
We are looking at a couple of properties in Wyoming. One is a commercial lot that has some shop and storage space plus 3 residential rental units on it. This one could be bought as a potential new location for the company and it would be. The other is a four plex. Can either of these use company money to buy or would we have to purchase individually and rent back to us?

Thank you

I am so sorry I missed your question. There was a computer glitch and I just received it. Please forgive me. However, I just answered it on the Podcast today, 1/28, please look for the new podcast Open Forum and check out my answer. I hope it was helpful. Mark