@set PATH=%FrameworkSDKDir%\bin;%FrameworkDir%\%FrameworkVersion%;%PATH%;
Shouldn't that read
@set PATH=%FrameworkDir%\bin;%FrameworkDir%\%FrameworkVersion%;%PATH%;
And in the source code where is the LogIt function defined?
Other than that it is nice to see a practical example of the CLR functionality.