How To Create And Call A Function In Powershell Script To Set