{
    "apps": [{
        "name": "ModMailBot",
        "cwd": "./",
        "script": "npm",
        "args": "start"
    }]
}

{
    "apps": [{
        "name": "ModMailBot",
        "cwd": "./",
        "script": "npm",
        "args": "./src/index.js"
    }]
}

Update pm2 config file to run on Windows 10
Update pm2 config file to run on Windows 10

https://github.com/Unitech/pm2/issues/3657#issuecomment-482010714

This is a known issue with pm2 on Windows.  pm2 tries to run node.cmd as javascript which is wrong.