functions/registry/Set-WUPS1Action.ps1

<#
  .DESCRIPTION
  This cmdlet works with registry.
#>


[CmdletBinding(SupportsShouldProcess)]
param (
  [ValidateSet('Run', 'Edit', 'Notepad')]
  [string]
  $PS1Action
)

Set-StrictMode -Version 'Latest'
$registryHash = Get-WURegistryHash
if (!$registryHash) {
  return
}

Set-WURegistryFromHash -RegistryHash $registryHash -DataKey $PS1Action