#requires -v 3 param($cmd) set-strictmode -off . "$psscriptroot\..\lib\core.ps1" . (relpath '..\lib\commands') $commands = commands if (@($null, '-h', '--help', '/?') -contains $cmd) { exec 'help' $args } elseif ($commands -contains $cmd) { exec $cmd $args } else { "scoop: '$cmd' isn't a scoop command. See 'scoop help'"; exit 1 }