Is there a way to cancel/kill the runspaces triggered by a particular button or page?

Product: PowerShell Universal
Version: 3.6.2

I plan to give my admin users the ability to pull all users of an Azure AD tenant(s) into a variable(s). This can take up to 10 minutes.

Should an admin user inadvertently click the button (or perhaps choose the wrong tenant from drop down), would we be able to kill the runspaces where this process is running - effectively giving the admin users a Cancel button? In case it matters, I am using ForEach-Object -parallel.

Thank you
Kevin