Implementing powershell functionality.