Look into the [mshelp=ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemCodeDomCompiler.htm]System.CodeDom.Compiler[/mshelp] namespace. It provides runtime compilation services, eliminating the need for other scripting languages. With it, you can compile any .NET program into an executable or a library.
Also, look for a CodeDom example by divil in the Code Library.