Could I suggest that you refrain from that. I'm fairly certain that you should write other functions which you can then add to the thread pool as required.
In most programming languages, it's bad style to call the main function; write other functions to do your work if that's how you want to do it. Basically:
static void Function(){
//Do stuff
}
static void Main(){
TaskFactory.StartNew(Function).wait();
}