I am looking for help in regards to either;
Also, is there a way to disable the sidebar popup that appears after a script is used?
Any help or leads appreciated, thanks all!
I am unsure what you intend to accomplish by triggering a button. A button is a trigger and has an actions.
A button can open most Extensions, it is one of the action options at the bottom. The other actions can be performed by your script and would not need the button to trigger them.
I am not sure of a way to hide the Extensions side bar after a button interacts with it. The page URL needs this at the end to close it: ?blocks=hide