Git should run from either cmd.exe or bash.
The problem is the use of ' in your command. Windows only uses ".
The command you are looking for is:
git filter-branch --force --index-filter \
"git rm --cached --ignore-unmatch *.csv" \
--prune-empty --tag-name-filter cat -- --all