PSMinifier
PSMinifier copied to clipboard
PSMinifier removes too many parenthesis within list expressions
Compress-ScriptBlock -ScriptBlock { $c, $t, $id = 0, $allFiles.Count, $(Get-Random) } # Fails (but should not)
Compress-ScriptBlock -ScriptBlock { $c, $t, $id = 0, $allFiles.Count, [Random]::new().Next() } # works just fine