Hi,
Thank you for posting in Microsoft Q&A forum.
For the first issue, have we verified the devenv.exe is installed under the path %Program Files%\Microsoft Visual Studio\2022\Professional\Common7\IDE on the client?
And what is the value of the version of the file devenv.exe?
For the second issue, we may need to add a parameter -quiet in the command line to bypass the "Continue" prompt.
You may follow this guidance for more details:
https://www.anoopcnair.com/easy-deploy-visual-studio-2019-using-sccm/
(Please Note: Since the website is not hosted by Microsoft, just for your reference.)
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".