Begin PowerShell implementation of Rupa's z script