Once you have done the search and got the item int...
# suitescript
k
Once you have done the search and got the item internalid you should be able then to create an SO within the same script and add the items you got from the search.