Nectar10.psm1

<#
These series of PowerShell functions allow administrators to automate many functions in Nectar DXP and the Endpoint Client Controller that are otherwise difficult or time-consuming to perform in the UI.
 
To install, follow the instructions at https://support.nectarcorp.com/docs/powershell
 
If you want help with a particular command, type Get-Help <commandname> -Full (ie. Get-Help Connect-NectarCloud -Full). Full documentation is available at https://support.nectarcorp.com/docs/powershell
#>


#Requires -Version 5.0

$ModuleRoot = $PSScriptRoot

# Load private helper functions first (called by public functions)
Get-ChildItem -Path "$ModuleRoot\Functions\Private" -Filter '*.ps1' -ErrorAction SilentlyContinue | ForEach-Object {
    try { . $_.FullName }
    catch { Write-Error "Failed to import private function file $($_.Name): $_" }
}

# Load public function files
Get-ChildItem -Path "$ModuleRoot\Functions\Public" -Filter '*.ps1' -ErrorAction SilentlyContinue | ForEach-Object {
    try { . $_.FullName }
    catch { Write-Error "Failed to import function file $($_.Name): $_" }
}

Export-ModuleMember -Alias * -Function *