MacOS SwiftUI Menu action for function after App struct instantiated

Storyboard menus connect to functions anywhere. SwiftUI menus can access functions in view models instantiated in the App struct, but not anything later because .commands only returns a Scene.

Is that a missing feature or am I missing something?
MacOS SwiftUI Menu action for function after App struct instantiated
 
 
Q