Powershell Script Function With Array In C