hi,
thanks for your quick reply. I did try this, but now I get another error with the Invoke-Expression:
Changed the command to :
$Command = ".\CheckJavaProcesses.ps1 -arg (,$ComputerArray)"
Error now is:
Invoke-Expression : Missing expression after unary operator ','
If I try to call the script without buliding the command first I get:
The argument is null or empty. Supply an argument that is not null or empty and then try the command again
I am probably being obtuse here, so apologies for that