Yes the benefit from using the "inline script" or 3Q&S Technique is that (1) it is self contained and requires no other setup other the the Rich Text Formula field and (2) you don't have to make reference to a section id as the formula field itself can be used as the target:
.insertAfter("#sect_s14");
But what did you do with the $filter parameter? PowerBI has docs both with and without the dollar sign.
> how else can inline scripts be leveraged
Once you get JavaScript loaded - and to some extent it does not matter how you do it - you can do just about anything.