Changing tag via scripting....

How would I change a tag via scripting? (Is it possible?)

yourObject.tag = "PredefinedTag";

Should work for both GameObject and Component references - the tag needs to be defined in the tag inspector