Create Functions In Powershell Script Generator