Move script execution logic into a separate project from the console application.