@! Try{if($started){$global:tick = $tick + 1}else{$global:tick = 0; $global:started = 1}} Catch{ $ErrorMessage = $_.Exception.Message; $ErrorMessage} function GetTick(){Try{return $tick}Catch{"GetTick Broke."}} start 'cmd.exe' '/k echo',(GetTick),'is the current number.' @!