[FEATURE] Add option to convert component actions to Script actions

Often I will set up a component action only to realise I need to convert it to a script to do other things/something more complex. It would be really nice if there was an action to do this for you. I would probably always use this option to create the openPopup function call for me, as this is always a pita to write from scratch every time with all of the weird and wonderful settings that are available.

Idea link: