How to open command prompt and launch the xaml file?

What script do you want to run? Is it UiPath package or sth else?

If you want to start robot from cmd here is the doc for that: Arguments Description

If you want to open xaml file use invoke workflow activity in your project.

If you want to run script that can be initiate from cmd, then you will find solution here: Running a .bat file using start process