how can I add a scope into my NodeJS embedded app then reboot the app so that the store can allow it

how can I add a scope into my NodeJS embedded app then reboot the app so that the store can allow it