120VAC fan will not work with batteries.....you'll let the factory smoke out of the fan.

To wire a cord to it use this.....
Black = Line(hot)
White = Neutral
Green = Ground

DO NOT just twist the wires together and tape them....use wire nuts!!!!
If your not sure which prong on the plug goes where if the wires are not color coded..

The narrow flat blade is HOT
The wide, flat blade is Neutral
The round prong is Ground