this has been asked in the forum many times, i hope this function "Remarks" section can sum-up the idea with all its considerations and caveats.
the thing is, the internal macro @OSVersion is not always up-to-date for the newest versions of windows, notably the preview releases, so a more direct approach is taken here.
; #FUNCTION# ====================================================================================================================
; Name ..........: _OSVersion
; Description .