Send hexadecimal commands on com1 to turn a light bulb on

Hi,
We will be having an experimental presentations on our electronics class and i wanted to use the computer to send hexadecimal commands on com 1 to turn a light bulb on. Could somebody help me what commands should i input?
