Update Convert-HandleToSV.ps1

Refactored common code to shared .ps1 file.