For me it didn't work with C:\ either (as MP is installed on D: ?). It worked with an absolute path on the same drive or you can try using a relative path (e.g. ManiaPlanet.exe /generatescriptdoc=doc.h to generate it in the same directory) instead.