This script can be used for brownfield deployments of the Application Gateway Ingress Controller for Azure Kubernetes Service.
Blog post with more details about this script here: http://www.buchatech.com/2020/04/application-gateway-ingress-controller-deployment-script-for-azure-kubernetes-service