How Do I Check For The Sql Server Version Using Powershell 2022 Code

How Do I Check For The Sql Server Version Using Powershell 2022 Code