adding more utility functions for powershell.