The above vbscript can be used to change the value of a single byte in a binary file.
It writes a byte of 0 to offset 498 in this example.
You can pass the address and byte value on the command line by replacing the lines for address and newbyte
address = WScript.Arguments.Item(1)
newbyte = WScript.Arguments.Item(2)
' Specify the address of the byte to be modified 498=0x1F2 = Partition 4 Type Number if MBR
'address = 0
'newbyte = 33
e.g. cscript tweakbyte.vbs "K:\TEST SS.MBR" 32 255
P.S. The Windows utility bytepatch.exe can also be used for several bytes, e.g.
bytepatch.exe FILE.BIN -a 494 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00