Private/Test-IsWindows.ps1

# Borrowed from Brandon Olin - thanks!
function Test-IsWindows {
    [CmdletBinding()]
    [OutputType([bool])]
    param()
    end {
        !(Test-Path -Path Variable:\IsWindows) -or $IsWindows
    }
}