Writing a scripted input to gather data