I'd suggest splitting this into two different features, 1. installing and running add-on via CLI & 2. Running or spawning new firefox instance with fresh profile from the CLI.