I had accidentally left debug code in uabrc_hw.nhc that was causing the script to fail when run within the NHC framework.
uabrc_hw.nhc