Search notes:

%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup

PS C:\> [Environment]::GetFolderPath('Startup')
C:\Users\Rene\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Addding some programs to be started automatically when logging in

Open Outlook, Teams and Windows Terminal automatically when logging in (check first if applications are alread listed, possibly disabled, in Startup Apps of the Task Manager)
$startup = [Environment]::GetFolderPath('Startup')
$progs   = "$env:ProgramData\Microsoft\Windows\Start Menu\Programs" 

$outlookLnk = get-childItem $progs -recurse -filter "*Outlook*.lnk" | select-object -First 1
if ($outlookLnk) {
   copy-item $outlookLnk.FullName $startup -force
}

$teamsLnk = get-childItem $progs -recurse -filter "*Teams*.lnk" |
            where-object { $_.Name -notlike "*classic*" -and $_.Name -notlike "*work or school*" } |
            select-object -first 1
if ($teamsLnk) {
   copy-Item $teamsLnk.FullName $startup -force
}

$wtLnk     = get-childItem $progs -recurse -filter "*Terminal*.lnk" |
             where-object { $_.Name -like "*Windows Terminal*" } |
             select-object -first 1

if ($wtLnk) {
    copy-item $wtLnk.FullName $startup -Force
}
else {
  # Fallback: create shortcut manually
    $WshShell = new-object -comObject WScript.Shell
    $shortcut = $WshShell.CreateShortcut("$startup\Windows Terminal.lnk")
    $shortcut.TargetPath = "$env:LOCALAPPDATA\Microsoft\WindowsApps\wt.exe"
    $shortcut.Save()
}

See also

Programs that are automatically be started in Windows
%ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp
The .NET enumeration System.Environment+SpecialFolder.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1788439166, '216.73.217.21', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/dirs/Users/username/AppData/Roaming/Microsoft/Windows/Start-Menu/Programs/Startup/index(76): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78