Functions to load and variable issue when nested PowerShell execution
sheldonhull opened this issue · comments
Do you want to request a feature or report a bug?
Possible bug or possible lack of knowledge
What is the current behavior?
Running with a list of 12 arguments. The class that is pipelining input into rsjob seems to only iterate through the first result. In addition, I'm having it fail to recognize the functions to import. I'm thinking the call of the agent service from Team foundation server is executing script and this additional nesting/scope is where it fails to identify. I've also tried passing in list of arguments (comma delimited) at end of script block but when output debug the psbound arguments to see what script is recognizing I see only the first argument, and no others seems to be recognized.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Can provide more detail later, posting in case anyone had known issues and solution to this.
This only seems to occur when running through agent, not when executing through owe
Which versions of Powershell and which OS are affected by this issue? Did this work in previous versions of our scripts?
5.0
Any chance that you can provide some code example that I can work with and test against?