You can solve this problem with:
- Convert “&&” tokens to “-and”
- Convert “||” tokens to “-or”
- You can switch default shell to cmd
- npm config set script-shell cmd
- If you want to make powershell as default shell, then execute "npm config set script-shell powershell"