@ispiro I checked the code on that case. If you directly use that code in your UWP app, it's unsupported. But With the Windows 10 Anniversary Update (1607), there's launch a fulltrust process API in the Desktop Extension SDK.
So, you could first make a console application/WPF application to use that code. And make a UWP app to call the FullTrustProcessLauncher
API. At the end, create a 'Windows Application Packaging Project' and add the both as Application references to the Packaging project.
Then, you need to declare the extension in the package manifest and add a reference to Desktop Extension SDK.
More information, you could check Stefanwick's blog: UWP with Desktop Extension.