All, I created a little script to remove an application from a computer and it works well. However, the icon for the application remains in the menu bar. Is there a way to refresh the menu bar? I am thinking almost like killing the dock and having it come back.
Thank you @ggetenj I tried that but for some reason, the menu is refreshing but the icon isn't being removed. The app was launched using a LaunchAgent, which was force quit and removed. I might have to force the user to log out and have them log back in. This process does fix the icon issue.