I'm going to post my full code below so you can kind of get an idea of what I am trying to do. Ultimately, I just want to write a script with parameters so that we can add "approved" apps for uninstallation for our users if that makes sense. Otherwise, we have to give our users temporary admin to uninstall apps themselves.