buzd said Switch replaces ifs. https://docs.microsoft.com/en-us/po...s/everything-about-switch?view=powershell-7.2 Click to expand...