OSVersion function refactoring in FirstLogon.ps1