functions/registry/Set-DesktopIconSize.ps1

function Set-WUDesktopIconSize {
    [CmdletBinding(SupportsShouldProcess)]
    param (
        [ValidateSet('ExtraLarge', 'Large', 'Medium', 'Small')]
        $Size
    )

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

    Set-WURegistryFromHash -RegistryHash $registryHash -DataKey $Size

    Get-Process explorer | Stop-Process
}