Control MPD on RPI by MPC console commands that sends from Blynk

" from d1 mini to RPI "-this event is clear for me.
but NodeJS… …like cloudy puddle…

I peeped here Execute external bash script on server with blynk))

I understand that after installing Blynk library and Node JS to RPI, I need the file blynkclient.sh with this content:

#!  /usr/bin/env node

var Blynk=require('/usr/lib/node_modules/blynk-library/');

const spawn=require('child_process').spawn;

var AUTH= 'my token';

var blynk= new Blynk.Blynk (AUTH, options={

connector : new.Blynk.TcpClient (options={ addr: "my server IP", port : "my server's port"})
});
var v1= new blynk.Virtual pin (1);

v1.on ('write', function (param) {
const sh=spawn('/bin/sh', ['/home/pi/player.sh']);
}); 

And in file Player.sh I need this:

#! /bin/bash
mpc next

(for example to turn next trak on the player).

RIght or not?