From 2a64ca787a99791ac0a213e06571d979ae69802a Mon Sep 17 00:00:00 2001 From: Gautam Sheth Date: Tue, 26 Sep 2023 21:50:34 +0300 Subject: [PATCH] Update Build-HelpFile.ps1 --- build/Build-HelpFile.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Build-HelpFile.ps1 b/build/Build-HelpFile.ps1 index e49999c4c..61c241bbc 100644 --- a/build/Build-HelpFile.ps1 +++ b/build/Build-HelpFile.ps1 @@ -20,7 +20,7 @@ Try { $pnpDllLocation = "$destinationFolder/Core/PnP.PowerShell.dll" Write-Host "Importing PnP PowerShell assembly from $pnpDllLocation" - Import-Module -Name $pnpDllLocation -DisableNameChecking + Import-Module -Name $pnpDllLocation -DisableNameChecking -Force Write-Host "Import PnP PowerShell successful" $cmdlets = Get-Command -Module PnP.PowerShell | Where-Object CommandType -eq "Alias" | Select-Object -Property @{N="Alias";E={$_.Name}}, @{N="ReferencedCommand";E={$_.ReferencedCommand.Name}} $cmdlets