That is because the code sample you have supplied is using WPF commands (or the command design pattern) and not events, so you need to look up how to handle commanding in Powershell or change the button command into events
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
That is because the code sample you have supplied is using WPF commands (or the command design pattern) and not events, so you need to look up how to handle commanding in Powershell or change the button command into events