技術記事與生活
$PSDefaultParameterValues=@{ "*-ADGroupMember:Server"="DC01.Contoso.com"}
Add-ADGroupMember -Identity "GroupName" -Members "Dino9021"
Reference:
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parameters_default_values?view=powershell-5.1