Permission to run shell commands


I´m building an app store that wants to put together Snaps, Flatpaks and App Images.
And I want to run commands like snap install some-app or flatpak install flathub some.flatpak.Here.
The app is being built in electron and iI run these commands using child_process node lib.

In the snap package, the commands are not working, but in the AppImage and .deb the app works as expected.

Has My app to be in classic confinement?
Should I add some plug to my app be able to run these commands?

Link to my app: