Powershell Function Optional Parameter Api