How do I set up a shortcut for PowerShell 7.3 in Windows 10?

Step 1

Go to %APPDATA%\Microsoft\Windows\Start Menu\Programs\PowerShell.

Step 2

Copy the "PowerShell 7 (x64)" shortcut to the required location (e.g., to your Desktop).
2023-04-28--23-38-17

Step 3

Change «Target» from

"C:\Program Files\PowerShell\7\pwsh.exe" -WorkingDirectory ~

to

"C:\Program Files\PowerShell\7\pwsh.exe" -WorkingDirectory "C:\work\doc"

2023-04-30--19-45-55

Step 4

How to setup a shortcut to run its program with administrative rights in Windows?

How to create a shortcut for opening PowerShell 5.1 with administrative rights in Windows 10?