For non-residential uses, there are few if any restrictions as long as the spaces are all part of one building. There should be no issues as long as the wires do not serve outlets in the other space(s).
But make sure that the wires are branch or feeder circuits rather than service conductors (which cannot go very far inside anyway.)