You can easily use OSD Module in your own PowerShell Modules and Scripts
In your Module Manifest (PSD1), include the OSD Module in RequiredModules
RequiredModules = @(
@{ModuleName = 'OSD'; ModuleVersion = '19.10.10.0'; Guid = '9fe5b9b6-0224-4d87-9018-a8978529f6f5'}
)
OSDBuilder uses the OSD Module in some of its code. In this example, IsAdmin is being evaluated as this function requires Admin Rights