Turn Powershell Script Into Function Example