@Tom-Elliott said in Create Basic Snapin:

batch script to directly call the npm binary. Right now, the way your batch file is written, it expects the npm to be set in system path. If you know it’s installed in C:\npm\npm.bat I would

Thank you @Tom-Elliott and @Sebastian-Roth. It worked as regular user not as administrator.
I have used another solution that is psexec that is a tool that runs the script at all the machines.