naive implementation of require for powershell