UnofficialIntuneManagement.psm1

<#
This file is the root module to UnofficialIntuneManagement, and imports scripts from $PSScriptRoot\Public\ which contains PowerShell functions for management of Intune via the Graph API.
 
This is only a temporary collection of functions, and will not be maintained.
#>

[CmdletBinding()]
$PublicFunction  = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue ) # Public functions can be called by user after module import

foreach ($Import in $PublicFunction)
{
    Write-Verbose "Importing $Import"
    try
    {
        . $Import.fullname
    }
    catch
    {
        throw "Could not import function $($Import.fullname): $_"
    }
}

Export-ModuleMember -Function $PublicFunction.Basename