You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run the script once, then edit the script by adding another menu item. It doesn't show up until I close PowerShell and re-open and run the script from a clean PowerShell.
Is there something that can be done so that if a new script is run it clears all the menus out, that or either when show menu exits it clears all the menus.
The text was updated successfully, but these errors were encountered:
hi,
Sorry for the late reply. No need to restart powershell, just unload the module with Remove-Module. Also you should be able to "edit" the menu at runtime. If you have a main-menu, use something like this:
Get-Menu-Name "menuName"|new-menuItem@newMenuItem
Moving forward I think we might need a set-menu cmdlet. I will take it into consideration, thank you.
If I run the script once, then edit the script by adding another menu item. It doesn't show up until I close PowerShell and re-open and run the script from a clean PowerShell.
Is there something that can be done so that if a new script is run it clears all the menus out, that or either when show menu exits it clears all the menus.
The text was updated successfully, but these errors were encountered: