Please post the complete command used as well as all output and error messages from that command. This is extremely important when troubleshooting command line issues. We need to see every character and space as each is very important since the command line is very unforgiving.
Either take a screenshot of the Terminal window, or copy everything and paste it here by using the "Code Insertion" tool whose icon looks like "</>" and located on the forum editing toolbar. This is the only way to post text from the command line (or Terminal window) in order to easily view the characters & spaces (uses a special font which makes it much easier to read for us and notice the small details).
Also make sure you have the full Catalina installer app in the Applications folder. Many times the App Store may only download just the stub installer. The full installer is about 5-6GB in size. If you find only the stub installer, then run the stub installer which will download the rest of the installer. Once this download is complete and it asks to proceed, just quit it like you would any normal app. Verify the installer is about 6GB in size and try the Terminal command again.
You can also use the command line to download the full Catalina installer (it may be best to delete the stub installer first before using this option):
softwareupdate --fetch-full-installer --full-installer-version 10.15.7