Add IsWindows to PS5.1 to allow cleaner code
PowerShell for Linux and OSX added IsLinux, IsOSX, and IsCore (?). IsWindows was added for PowerShellCore.
Can you add IsWindows to allow cleaner code to not have to assume if it is False for Linux,OSX,Core, it's full Windows (not nano), etc?
Tatsunori Uchino commented
We can deal with this issue by the following code (undefined variables are evaluated as $false), but it's inconvenient.
$IsWin = $IsWindows -or -not (Test-Path Variable:IsWindows)