PSPersianCalendar.psm1
# Get public and private function definition files. $functions = @( Get-ChildItem -Path $PSScriptRoot -Recurse -Filter *.ps1 -Exclude PSPersianDate.ps1) # Dot source the files Foreach($import in $functions) { Try { . $import.fullname } Catch { Write-Error -Message "Failed to import function $($import.fullname): $_" } } New-Alias -Name "shp" -Value "Show-PersianCal" New-Alias -Name "gpd" -Value "Get-PersianDate" Export-ModuleMember -Alias "shp" -Function "Show-PersianCal" Export-ModuleMember -Alias "gpd" -Function "Get-PersianDate" |