It’s not possible to programmatically run prisma migrate/db push at the moment.
There’s a github issue about this, which mentions some workarounds:
https://github.com/prisma/prisma/issues/4703
Feel free to check out the issue and leave a comment about your use-case.