Get Windows version from command line

Option 1:
Win+R
winver
enter

Option 2:
open CMD
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"

Option 3:
wmic os get Caption,CSDVersion /value