How to pass user variables from TFS 2015 Build definition to power shell script?
You can define build variables, then reference them in the PowerShell task under arguments. For example if my powershell script took a parameter called foo I could do this:
You Can access the V next user variables in power shell like below,
Example:
$env:foo
In your case it is,
blah.ps1 -foo $env:foo