Problem

Need a quick Powershell script to open a text file, read the version number, and then increment either the major, minor or build part, based on user input.

Solution

Here you go: