When running manually from a command window, where does your script output the data it gathers? If it outputs the data to the command window then you could have Excel VBA run the script, redirecting the output to a file, wait for the script to finish and then read the data from the file. The Windows Script Host Run method (http://msdn.microsoft.com/en-us/libr...=vs.84%29.aspx) can do the first 3 steps, and then use VBA Open and Input #, Line Input # statements or FSO methods to read the data from the file. I've not used PowerShell, but it should be something like the following:
The "%comspec% /c " & part might not be needed.
Bookmarks