Currently I have the following Invoke-Command:
Invoke-Command -ComputerName $i -ScriptBlock ${Function:query} `
-Credential oracle -ArgumentList $metconexao,$dumpdir,$i > $arq
Realize that the output of the Invoke-Command is put into $arq variable.
Now I need to do something like this:
Invoke-Command -ComputerName $i -ScriptBlock ${Function:query, commandTwo} `
-Credential oracle -ArgumentList $metconexao,$dumpdir,$i > $arq > outputTwo
I need the output of the commandTwo in another variable/file.
Is there some way to do this?