Script calls for shop processing?

I noticed Archeia closed the one thread and made a nice new shiny one with most of the event commands and their script equivalents, but somehow this one didn't make the list: and it would be really helpful for me right about now.

I'm assuming the event calls the Scene_Shop.prepare method, but if anyone knows some more specifics than that (like which scene_shop object gets called) I'd be mighty appreciative. 🙂
Hello, it's in there! It's on Page 3 of Event Pages IIRC.

Shop Processing

Code:
goods = [[type, id, price_override_flag(, price)]]
SceneManager.call(Scene_Shop)
SceneManager.scene.prepare(goods, true) 
# Example Script Call:
goods = [[0,1,1,25],[0,2,0]]
SceneManager.call(Scene_Shop)
SceneManager.scene.prepare(goods, true) 
# You can also use a loop to add the elements to the array:
goods = []
for id in 1..20  
 goods.push([0, id, 0])
end

Edit:

I copy pasted the wrong rb content on the topic *facepalm*

Original thread: https://forums.rpgmakerweb.com/threads/script-calls-for-shop-processing.25891/