/// <summary> /// Powershell logic. /// </summary> protected override void ProcessRecord() { while (Scraper.Exec(Expression)?.ToLower() != "true") { Thread.Sleep(1000); } }
/// <summary> /// Powershell cmdlet logic /// </summary> protected override void ProcessRecord() { WriteObject(Scraper.Exec(Expression)); }