protected PowerShellResults InvokeAsync(PSCommand psCommand, Action <PowerShellResults> onCompleted) { return(AsyncServiceManager.InvokeAsync(() => this.Invoke(psCommand), onCompleted, RbacPrincipal.Current.UniqueName, AsyncTaskType.Default, psCommand.ToTraceString())); }