Search notes:

Registry: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

This registry key contains commands that will be run each time a user logs on, if they're enabled. The execution can be disabled in the corresponding values under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run.

Add a program with PowerShell

A batch file or executable can be added to the registry with the foloowing set-itemProprty cmdLet:
set-itemProperty                                      `
  HKCU:\Software\Microsoft\Windows\CurrentVersion\Run `
 "some meaningful name"                               `
  p:\ath\to\executable.exe
More concretly, the following command causes Windows Terminal to be started automatically:
set-itemProperty                                       `
   HKCU:\Software\Microsoft\Windows\CurrentVersion\Run `
  'Windows Terminal'                                   `
  '%localappdata%\Microsoft\WindowsApps\wt.exe'        `
  -type expandString

See also

Programs that might automatically be started in Windows (and the «run keys» in the registry).
Windows settings ms-settings:startupapps
install-autorun.ps1 is a PowerShell script that adds a batch file to be executed when a user logs on, similarly to the set-itemProperty example above.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Index