Correct - my script was run in a bash script on Mac OS. You should be able to do something similar in Windows, though with different syntax for the DOS shell, or using a shell that comes with UNIX utilities that you can install on Windows. (Sorry I don't know the details, I haven't developed on Windows for years)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store