This is the function to check if checkbox is true winforms DataGridView:
function Install { param ( # OptionalParameters ) for($i=0;$