This article is contributed. See the original author and article here.

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

Brought to you by Dr. Ware, Microsoft Office 365 Silver Partner, Charleston SC.