Here are PowerShell examples that align with NASA’s “Power of 10” coding principles:
- Avoid Complex Control Flow (No goto or Recursion)
PowerShell doesn’t support goto, but recursion should be avoided.
❌ Bad Example (Recursion)
function Get-Factorial {
param ([int]$n)