Bundle Cycle action

I made a function to cycle the items in a bundle so you can actually select which item to take out. But currently you need to actually type the command to do it. I want to be able to do this without a command but I don't know how. Any ideas?
Continue to help post