Their info about "rm -rf" not working in Windows is slightly misleading. In PowerShell, you can accomplish this by running:
rm -r -fo my-folder-name
rm -r -fo my-folder-name
A typical problem of this is when having to run a script (say rm -rf dist) in windows and mac systems not the command itself
Today if I want to reliably automate some scripting I do NOT use shell scripting because it makes a bunch of implicit dependencies on existing system.
Instead I write these utility scripts in either JavaScript or PHP depending on the project and this seems to give JavaScript a slightly nicer consistent interface to perform basic functionality, built directly into the runtime.