As long as it is safely done there should be no issues with it. Many machines have their controls located in free standing enclosures. Enclose the wiring in protective conduit, proper connectors, no sharp edges, NEMA enclosure, etc. Make a wiring diagram kept with it. If you are unsure of anything get some one's help that is knowledgeable. Not every electrician is!