Pasted passwords and API keys sit unencrypted on your drive, and Clear-History won't erase them.
When you move repetitive tasks to scripts, execution becomes faster. However, processes that target the wrong items also ...