We say no extension cords because the resistance of the extra wire can reduce the power to the machine. This can also lead to heating of the wire which is a fire hazard.

 OTH, what gauge would offset that for a given distance is not something we know. An electrician would be the best person to consult. The best solution is to have an outlet wired to your panel for the machine to use.