Is there a powershell script that will show both output Results and Messages.
For example:
Select @@servername
It should show on the powershell output
Result - Server/InstanceName
Messages- (1 row(s) affected
For example:
Select @@servername
It should show on the powershell output
Result - Server/InstanceName
Messages- (1 row(s) affected