Add-PSDll
Description
Section titled “Description”Loads the CapaOne.ScriptingLibrary .NET assembly from $DllPath and creates the $cs object that every $cs.* helper call in a PowerPack script goes through.
Syntax
Section titled “Syntax”Add-PSDll
Parameters
Section titled “Parameters”None. Uses the script-scoped $DllPath variable (and $global:RunType, if set, to validate standalone-mode configuration).
Return value
Section titled “Return value”[CapaOne.ScriptingLibrary] — the $cs object used throughout the rest of the script.
Example
Section titled “Example”# From the MAIN section of the script template — shown for reference only:Import-Module (Join-Path $global:Packageroot $pgkit 'PSlib.psm1') -ErrorAction stop$cs = Add-PSDll