There is no way to turn off paging for the device; the script process was sending spaces to overcome the more prompts, and these were being echoed back in the output and ending in the config file output. I switched to an indirect upload and the problem went away.
Thanks for pointing me in the right direction.
Could we have a solarwinds Lab on how to build NCM deviceTemplates?