Boolean and bool difference?
问题 I've seen a function that looks something like this: function { [CmdletBinding()] [OutputType([Boolean])] param ( [bool] $param } # ... } What is the difference here between Boolean and bool ? 回答1: [bool] is a powershell type accelerator: https://4sysops.com/archives/using-powershell-type-accelerators/ I'm in powershell 7. If it's officially documented somewhere, I can't find it (besides Windows Powershell in Action, as usual). [psobject].Assembly.GetType("System.Management.Automation