Creating Scripts For Powershell Array Count Method In C