Hey @Kadoc!
I wrote a similar command to what you’re looking for, it shouldn’t be too hard to adapt it to your needs: