Here it produces a service message that instructs Teamcity to create or update build parameter ui.version and set it's value to the found string. So we added a Powershell build step with this script and down the pipeline we can refer to that paramater as %ui.version% .
Mar 10, 2020 · Named parameters. One way to use PowerShell function parameters in a script is via parameter name -- this method is called named parameters. When calling a script or function via named parameters, use the entire name of the parameter. For example, perhaps the example param block above is stored in a PowerShell script called foo.ps1.