Are you creating the column NumberFlag in the script?
Could it be that the creation of the column (or population of values) is not finished when you try to access the values? Then a wait(0) might help?
If it contains a formula, adding 'eval formula' at the end of the new column might also help.
new column("NumberFlag", character, formula(if(:Result<5, "Low", "High")), eval formula);