function Test-IsUnixPlatform { <# .SYNOPSIS Returns true if the platform is Unix This is as opposed to Windows. Mac is a subset of Unix. #> [CmdletBinding()] [OutputType([bool])] param ( ) $platform = $PSVersionTable.Platform return (![string]::IsNullOrWhiteSpace($platform) -and $platform -eq "Unix") }