I'm just bad at writing powershell functions