It is working for me without errors in OmniPlan 1.5.1 (with the columns created before running the script). If you could post the specific errors you're seeing here, or send them in an email to
omniplan@omnigroup.com, I can try and see what's going awry for you.