internal/functions/Test-HostOSLinux.ps1

function Test-HostOSLinux {
    param (
        [object]$SqlInstance,
        [object]$SqlCredential
    )

    $server = Connect-SqlInstance -SqlInstance $SqlInstance -SqlCredential $SqlCredential
    $server.ConnectionContext.ExecuteScalar("SELECT @@VERSION") -match "Linux"
}