How would I go about running a Kantu macro from a programming language like php or javascript?

I am running windows7, firefox 61.0.2, and kantu 3.1.3

I created a simple script to just open an URL, localhost in this example, capture the source and export it to a file. I wanted to know:
a) can this script be executed from a programming language like javascript or php?
b) if the following code is correct?
c) where the file “localhostHTML” is stored?

{
    "CreationDate": "2018-8-14",
    "Commands:" [
        {
            "Command": "open",
            "Target": "http://localhost",
            "Value": ""
        },
        {
            "Command": "storeHtmlSource",
            "Target": "sitescreenshot",
            "Value": ""
        },
        {
            "Command": "localStorageExport",
            "Target": "localhostHTML",
            "Value": ""
        }
    ]
}