Rewrite of wakame-init.ps1. Tested OK.