Maximum Function Count Powershell Script Run