Have you looked at mciSendString api call?