How to run command with arduino?

Is there a way to make the compiler run by pressing a button on the arduino?

The compiler is a PC application. Without the cooperation of the PC, the Arduino can't make it do anything. That is, some application on the PC needs to be listening to the Arduino, to determine what it wants the PC to do. And, that application needs to make the PC do what the Arduino wants.