Either store the result in a variable ($result = Invoke-NcSsh) or pipe it to null at the end of the command ( | Out-Null). I usually store it in a variable - to check the result if needed.
Either store the result in a variable ($result = Invoke-NcSsh) or pipe it to null at the end of the command ( | Out-Null). I usually store it in a variable - to check the result if needed.