Here's how to do that yourself:
using Microsoft.TeamFoundation.Client;
using Microsoft.TeamFoundation.VersionControl.Client;
var workspace = Workstation.Current.GetLocalWorkspaceInfo(Directory.GetCurrentDirectory());
if (workspace != null)
{
teamProjectUri = workspace.ServerUri;
var server = TfsConfigurationServerFactory.GetConfigurationServer(teamProjectUri);
var projectCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(teamProjectUri)
var cssService = projectCollection.GetService<ICommonStructureService4>();
var project = cssService.GetProjectByName(ProjectName)
}
This way you'll be able to create command line tools that require fewer information to function. Which just makes them easier to use :).