diff --git a/toast.go b/toast.go index 1bcba4b..7c0baa7 100644 --- a/toast.go +++ b/toast.go @@ -350,7 +350,7 @@ func invokeTemporaryScript(content string) error { if err != nil { return err } - cmd := exec.Command("PowerShell", "-ExecutionPolicy", "Bypass", "-File", file) + cmd := exec.Command("PowerShell", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File", file) cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} if err = cmd.Run(); err != nil { return err