Is there a terminal command to open applications in a specific Desktop?
You can permanently assign an app to a Space by right-clicking the app in the dock > Options > Assign to... This Desktop.



A faster way to move it to any given Space is to grab the window's title bar, then use your regular shortcut to switch to the desired Space. By default that would be  Ctrl ⌃   [number] 
See System Prefs > Keyboard > Shortcuts > Mission Control if you've never set that up. [Note that it differentiates between the numbers above  qwerty &amp; numbers on a 10-key pad &amp; considers them different keys]