It’s going to be difficult to provide specific advice as the zoning and code issues are going to be highly local. I built a stand-alone shop on my property, but its rural zoned and effectively treated as a barn/outbuilding. Definitely not commercial zoning requirements, but your situation may be different.