Hey Chase, what your current script does - it adds a text layer.
However, what you do ask for - to populate text and effect (what effect?) added to it.
Please let us know the following:
1. By populate text, you want 'text layer's' text value to be shown in a dialog?
2. What effects you refer to? Is it effects applied to a layer, or layer effects, or anything else?