The Arduino does not execute commands when I unplug the Arduino.. It only executes commands when I press the restart button

Are you sure that also happens when power has been cut off completely?