how can i write sendcommendtoconsole function in delphi? - MPGH