How to Load Modules Using Import-Module
To load modules that are already installed or available in a specific directory, use the Import-Module cmdlet. Once the module is loaded, you can use the cmdlets and functions that are in that module in your PowerShell session.
Example of loading a built-in module or a pre-installed module:
Import-Module Microsoft.PowerShell.Management
To load a module from a local directory or a custom module:
Import-Module “C:\Path\To\Your\Module\MyCustomModule.psm1”
If you want to make sure that imported modules are available in each PowerShell session, you can add this command to the PowerShell profile file.