Try writing it as a batch file and then calling the batch file use the DOSKEY command
REM do_npm.bat
npm start
npm run serve
REM do_npm.bat npm start npm run serve Then, dorun the DOSKEY command
DOSKEY npm=do_npm.bat
DOSKEY npm=do_npm.bat See if that works for you