PowerShell parameters from file
问题 I am having some issue in calling a function using named parameters. This is the declaration of the function in a separate file (Security.ps1): function Add-SSRSItemSecurity ( [Parameter(Position=0,Mandatory=$false)] [Alias("SSRSrange")] [string]$range,[Parameter(Position=1,Mandatory=$false)] [Alias("path")] [string]$itemPath, [Parameter(Position=2,Mandatory=$false)] [Alias("grp")] [string]$groupUserName, [Parameter(Position=3,Mandatory=$false)] [Alias("SSRSrole")] [string]$role, [Parameter