Create Functions In Powershell For Loop