Don't have Telegram yet? Try it now!
https://rakhesh.com/powershell/find-out-if-a-script-was-dot-sourced-or-not/
Find out if a script was dot-sourced or not