Platform dependent script-shell config

Its a common issue when running npm script commands designed for *nix on windows and getting an error like '.' is not recognized as an internal or external command. One workaround means installing git-for-windows and setting script-shell globally as per the canonical SO answer. My ideas:

  1. Add script-shell-win to explicitly set the shell to use on windows (goes away when windows goes away, or MS adopts a proper unix shell which looks likely)
  2. Add script-wrapper or similar config option to specify how to wrap script commands e.g. bash -c ‘’

Any thoughts?