May i know how to sent byte array to serial port using maxscript?

May i know how to sent byte array to serial port using maxscript?
I have a device which requires me to sent data through serial port. In order to achieve serial communication i use dotnet object SerialPort.Write (Byte(), Int32, Int32) to sent my data but i have no idea how to sent byte array (byte()) in maxscript, can anyone tell me how?

port = dotNetObject "System.IO.Ports.SerialPort"
port.portname = "COM1"
port.baudrate = 2400
port.parity = port.parity.none
port.databits = 8
port.stopbits = port.stopbits.one
port.handshake= port.handshake.RequestToSend

try (destroyDialog rol_ServoCOMM) catch()
rollout rol_ServoCOMM "Servo Communication" width:500 height:600

(
button btn1 "Connect COM 1"
on btn1 pressed do
(
port.open()
)

button btn10 "array servo2"
on btn10 pressed do
(
command=16
position=100
arr00=#(command,position)
port.write(arr00,0,2)
)

)
createDialog rol_ServoCOMM

I’m sending 2 bytes data through method
port.write(buffer As Byte(), offset As Integer,count As Integer)
P.S. When i run this script the error dialog as followed:
MAXScript FileIn Exception:—Syntax error: at ),, expected
-- In line: port.write(arr00,0 <>