This information is generally hard coded in. Unless you are a Plus Merchant, you would not have access to do it. If you are a Plus merchant, there is a unsupported 3rd party tool you can use to make Shopify Scripts. One includes the ability to rename them: https://jgodson.github.io/shopify-script-creator/
Again that tool will only work if you are on Plus.
Any other way of doing it would be highly unsupported and could cause issues down the road for you