Toggle Bold on and off in custom script?

Anyone know of a way to toggle a field’s “Bold” value on and off in a custom script?