Various utility functions written in powershell.