works for me...

'rm' is an unknown command on my system. Perhaps you could try 'rd /s/q build' instead.