I want to display the operating system with the info of the PowerShell version, but I don't know how to do it.
Invoke-Command -ComputerName $wks -Credential $cred -Scriptblock {$PSVersionTable.PSVersion} -ErrorAction SilentlyContinue
Invoke-Command -ComputerName $wks -Credential $cred -Scriptblock {$PSVersionTable.PSVersion} -ErrorAction SilentlyContinue