I am trying to run the below command:
"SQL Version" = (Invoke-Command -ComputerName $Computer -ScriptBlock { Invoke-Sqlcmd -Query "SELECT SERVERPROPERTY ('edition')"})
The Output just shows:
SQL Version : System.Data.DataRow
How do I get it to show the actual results?