https://kukisama.github.io/Does_PowerShell_use_Switch_or_Bool_when_using_functions/
PowerShell使用函数时采用Switch还是Bool? - 不太皮的九叔