To fix the loading and get rid of the notification, please change the script so that all possible terminal interactions are skipped when a shell is launched by the IDE; one possible way is to put them inside conditional blocks:
Further Info https://youtrack.jetbrains.com/articles/IDEA-A-19/Shell-Environment-Loading