Using a custom function to create components in a PUD

I think you need to show people the whole picture, instead of snippets of script bits here and there post your whole dashboard to give everyone a better understanding. There is tons of info on this site which may or may not have the answer you need. So you mention clicking the checkbox inside the grid…so I assume you looked at Out-UDGridData with selectable rows? to see how another user has achieved this? Like I said dude, be more helpful if you posted your dashboard here or on github least let people have a better understanding of what does not work. Peace