With just 3 steps, you can add voice commands to your app. When completed, Cortana can then launch your app and specify an action or command to execute. You can read complete details for C#/VB/C++ and XAML or JavaScript and HTML on MSDN.