I figured it out. It might need a bit more refinement below are the revised scripts.
Your use of GetFIeld in the first script is not needed. If you removed GetFIeld and the quotation marks from that set variable step, you'll still get the same results when the script is performed and your script will no longer be vulnerable to breaking should you at some future time, decide to rename the field.
Phil thank you so much.