Call a node script that opens a web-socket and calls the endpoint directly… You should get away with something like this…
const io = require('socket.io-client');
const socket = io.connect('http://localhost:3000');
// Call the endpoint
const endPoint = { 'endpoint': 'music_service/mpd', 'method': 'createMPDFile', 'data': '' };
socket.emit('callMethod', endPoint);
// Sleep and exit as I don't feel like figuring out the correct push response.
setTimeout(() => process.exit(0), 1000);