Calling A Function In Powershell Script Parameters Group