Functions In Powershell Script Generator