$script now supports $for and $each