Throw exception if command is too long.

Otherwise it will simply file silently. This only implements on Windows.