Is there any solution to add(import) values to the registry from here string.
$regString = @"
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\SystemFileAssociations\.ps1]
... blha blha blha ....
"@
Some-FunctionOrCommandThatAcceptHereSTRtoReg $regString
+++ solution A (Mathias R. Jessen)
Just write HereString to file then use it in reg