[3.8.5] Crossdomain command generator

- [ ] Add tests
- [ ] Add docs