Solved
Forum Discussion
It appears I can run the routine when I'm on the Test items page, and if I make a keyword test with params then convert it to script mode it looks just like what I'm trying to do above.. so I'm not entirely sure.
Are you saying that I can achieve what I'm trying to do by making the params in a function INSIDE of a parent function?