I have to run the following command as an administrator from PHP:
$salida="sintaxis\insertarlo.exe sintaxis\sumar.cpp";
$respuesta=array();
$estado;
exec($salida,$respuesta,$estado);
but apparently as it is an .exe you need the command to run as administrator, there is some option for the exec or another command to execute a command as administrator