Thank you for taking the time to report this bug and contributing to Ubuntu. I can reproduce your steps and Apport behaves poorly for that use case. Following steps should be implemented to address this bug:
1. Improve the message "You need to specific the pakacge or PID" to state that it should be on the command line and it also should mention the --window option.
2. Fix --window option to work also on Wayland. (bug #1838372)
3. Instead of printing the error message, guide the user in the UI.
To anwser your other question and help your initial task:
ubuntu-bug and apport-bug are the same (one is a symlink to the other).
The program name of "Ubuntu Software" is snap-store.
Thank you for taking the time to report this bug and contributing to Ubuntu. I can reproduce your steps and Apport behaves poorly for that use case. Following steps should be implemented to address this bug:
1. Improve the message "You need to specific the pakacge or PID" to state that it should be on the command line and it also should mention the --window option.
2. Fix --window option to work also on Wayland. (bug #1838372)
3. Instead of printing the error message, guide the user in the UI.
To anwser your other question and help your initial task:
ubuntu-bug and apport-bug are the same (one is a symlink to the other).
The program name of "Ubuntu Software" is snap-store.