Translate c# into powershel

Job ID: 33730952

Budget: $10 – $30 USD

just need to translate a script:
{

RegistryKey key = Registry.ClassesRoot.OpenSubKey("EcmLink"); //open EcmLink protocol's subkey

if (key == null) //if the protocol is not registered yet...we register it

{

key = Registry.ClassesRoot.CreateSubKey("EcmLink");

key.SetValue(string.Empty, "URL: ecmlink Protocol");

key.SetValue("URL Protocol", string.Empty);


key = key.CreateSubKey(@"shell\open\command");

key.SetValue(string.Empty, @"\\elementcapital\ecns01\Software\ClickOnce\EcmLink\EcmLink.exe %1");

//%1 represents the argument - this tells windows to open this program with the clicked on URL as an arg

}

Message("Installed EcmLink URL Handler", isInfo: true);

return;

}
Related categories: C# Programming Powershell