Is there a way by which a shell script can be invoked from IntelliJ Run/Debug configurations?
'Add External tool' in the 'Before Launch' does the trick.
Screenshot