PowerShell is very aggressive when it comes to converting types and arrays behind the scenes. As an alternative, I would suggest passing a Custom PSObject instead.
You could also try creating a non-GUI script and call Start-Job directly and see if you get the same result.
Button - Start Job control: Problem sending array to Argument List parameter
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Button - Start Job control: Problem sending array to Argument List parameter
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Button - Start Job control: Problem sending array to Argument List parameter
Good idea. When I have time I'll create a custom PS object as you said with both objects embedded. That way the -Argument parameter will only see one object which it shouldn't have a problem with.
Thanks.
Thanks.