Using Bitly with text files on requires hygiene. Because Windows 10 Home lacks BitLocker encryption (that’s Pro/Enterprise), your .txt file is vulnerable if someone gains physical access to your machine.
$Body = @ "long_url" = $LongUrl | ConvertTo-Json bitly windowstxt windows 10 home