You can use the net send dos command.