Go to the Settings page, scroll down to the bottom.
Tap on "About Firefox".
Tap on the Firefox logo 5 times. It will display a message that says "Debug Menu enabled".
If you go back to the Settings page, you'll notice that a new option is available under the Advanced section.
It's called Custom Add-on Collections.
Tap on it, and it will ask you to enter the collection owner's ID, and the collection's name.
The ID is a unique 6-digit number that can be found in your add-on collection's URL.
The name of course refers to the collection's name, unlike the number this is something that you can choose.
For example, https://addons.mozilla.org/en-US/firefox/collections/***926754***/***ghacks***/
The ID for this collection is 926754 and the name is ghacks.
You may have a better luck asking for a script on this community: [email protected]
Otherwise I'm pretty sure you can use terminal emulator like Termux on Android. You should be able to install python and use all those commands just fine...