Publish.ps1

$Date = Get-Date

$Params = @{
      ModuleVersion = '1.3.2'
      Path          = "C:\Program Files\WindowsPowerShell\Modules\PowershellBGInfo\1.3.2\PowershellBGInfo.psd1"
      Author        = "Itamar Tziger"
      CompanyName   = "Ammaso"
      Copyright     = "(c) $($Date.Year) Itamar Tziger. All rights reserved."
      Tags          = 'Powershell','BGinfo'
      ProjectUri    = 'https://github.com/itamartz/BGInfoModuleforPowershell'
      ReleaseNotes  = 'Updated the PowershellBGInfo module.'
}

Update-ModuleManifest @Params

$parameters = @{
    Path        = 'C:\Program Files\WindowsPowerShell\Modules\PowershellBGInfo\1.3.2'
    NuGetApiKey = [System.Environment]::GetEnvironmentVariable("PowershellGallery_NuGetApiKey")
}
Publish-Module @parameters #-WhatIf