You will need to install Workspace in your assembly definition, including the directory with the Powershell script.
So your mapping might look like this:
*Server* *Workspace*
$/Project/Code/Dir - $(SourcesDir)
You will need to add:
*Server* *Workspace*
$/Project/Code/Dir - $(SourcesDir)
$/Project/BuildScripts - $(SourcesDir)/BuildScripts
Your InvokeProcess can then pass Path.Combine(SourceDirectory, "BuildScripts", "MyScript.ps1")Powershell to the command line.
NB You can also set the workspace $/Project/Code/Dirto $(SourcesDir)/Code.
source
share