Open
Description
Exception is thrown in Update-Progress function:
Exception: Attempted to divide by zero. --> Attempted to divide by zero.
It happens, because $totalCommands is not defined.
$totalCommands = $commandsHelp.Count
Simple fix:
$totalCommands = $commandsHelp.Count
if (!$totalCommands)
{
$totalCommands = 1
}
Activity