The taskbar module is really experimental - and I think this is one of the first questions about it :)

tb.RunningApplication.Button(i).Click() - doesn't use ClickInput()

RunningApplications is a toolbar control - and I don't understand toolbar controls very well either.

If you print the "Texts()" for tb.RunningApplications - you can see that there are two texts for each button. Clicking one of them highlights the button but doesn't necessarily make the application pop to the front (though it could be because I am using cmd line rather than a script.

There may be some Notification message I need to send to the Toolbar (or it's parent) to make it more like a real click.