newer Windows Systems have PowerShell out-of-the-box. It's not a drop-in replacement for CMD.EXE, and I find its (as I would call it) "similarity-but-difference" to Perl somehow appalling, but should be useful for your case. According to this SO thread you would be able to write
cc -o interp interp.c $(perl -MExtUtils::Embed -e ccopts -e ldopts)