Migrated Get-Handle to PowerShell

Get-Handle was primarily C#. Migrating much of the code to PowerShell.