Update console.php

Re-writed command sending, using gate