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
Published Aug 13, 2020
Version 1.0Tzvia
Microsoft
Joined September 06, 2018
Azure Data Explorer Blog
Follow this blog board to get notified when there's new activity