title: Team Foundation Server: How to trigger or run a user script?
body: <p>I am new to Microsoft TFS, (I am used to Perforce - a similar tool).
  How can we trigger or run a user script automatically when ever a particular event occurs
  in TFS?</p>
  
  <p>For instance, I want to run my java file when ever a change to any file has been saved through TFS.
  (In perforce I used "Change-commit triggers" to achieve this)</p>
  
  <p>Please help me out.</p>
  
  <p><strong>EDIT</strong>: After some research,
  I figured that we need to "<strong>Use the InvokeProcess activity to start a process (run a program) on the build server</strong>" from the following <a href="http://msdn.microsoft.com/en-us/library/gg265783.aspx#Activity_InvokeProcess" rel="nofollow">source</a>.</p>
  
  <p>But How do I use it?? I am using a "Microsoft Team Explorer for Visual Studio 2012". Not able to figure out how to use InvokeProcess.. Please help me out.. </p>