Updating this script to handle Windows.