Executive orders

What are executive orders and upon what powers are they based? Why are some executive orders controversial?