@SerQuicky Did you try taking a look at the copy in: @ionic/app-scripts - npm?
It also occurs to me that you overwrite the file: ionic_copy (
-y) with yours and add custom tasks.
Check the options in documentation before and check this post:
Thanks for reply, with the help of your comment and the linked thread I was able to implement the extern script.