Added powershell implementation
Added hand-compiled version