Well it's just a matter of learning what to put in the registry keys. Once you have read up and know what needs to be in there, it's pretty easy to write to the registry from within powershell. Here are examples for the local registry. Remote is a bit more involved but perfectly doable.
43# cd "hklm:\system\currentcontrolset\control\session manager"
HKLM:\system\currentcontrolset\control\session manager
44# gi FileRenameOperations
Hive: Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\system\currentcontrolset\con
trol\session manager
SKC VC Name Property
--- -- ---- --------
0 0 FileRenameOperations {}
45# Get-ItemProperty FileRenameOperations
46# ls
Hive: Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\system\currentcontrolset\con
trol\session manager
SKC VC Name Property
--- -- ---- --------
0 1 AppCompatibility {AppCompatCache}
15 0 AppPatches {}
0 6 DOS Devices {AUX, MAILSLOT, NUL, PIPE, PRN, UNC}
0 23 Environment {APR_ICONV_PATH, CLASSPATH, ComSpec, CYGWIN, FP_NO...
0 3 Executive {AdditionalCriticalWorkerThreads, AdditionalDelaye...
0 0 FileRenameOperations {}
0 2 kernel {ObUnsecureGlobalNames, obcaseinsensitive}
0 21 KnownDLLs {advapi32, comdlg32, DllDirectory, gdi32, imagehlp...
1 15 Memory Management {ClearPageFileAtShutdown, DisablePagingExecutive, ...
0 13 Power {AcProcessorPolicy, DcProcessorPolicy, AcPolicy, D...
0 2 SFC {ProgramFilesDir, CommonFilesDir}
1 6 SubSystems {Debug, Kmode, Optional, Posix, Required, Windows}
0 1 Throttle {PerfEnablePackageIdle}
47# Get-ItemProperty sfc
ProgramFilesDir CommonFilesDir
--------------- --------------
C:\Program Files? C:\Program Files\Common Filesw |