The best option to replicate the stored functions is to build a script with these commands and use:
“.execute database script” command: https://docs.microsoft.com/en-us/azure/data-explorer/kusto/management/execute-database-script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.