Fixed two bugs that caused powershell to error out when selecting through the menu