Geometric algorithms implemented in PowerShell