An executive order is a legally binding order that is given by the American President to direct federal agencies to carry out some specific action in their execution of Congressionally adopted laws and policies. Whereas a law is a piece of legislation that has been agreed to by Congress.