I think the point of this puzzle is two-fold.

1) Why does fetching the ProcessID in the second script not work ?

2) If fetching the ProcessID in the second script doesn't work, why does fetching the Handle in the first script work ?

-Shawn