To create an alias for just named j
in Powershell that sets just's default shell to PowerShell itself, create a PowerShell profile with the following contents.
###
### PowerShell profile
###
### Installation
### ============
### Store this file at `$HOME\Documents\PowerShell\Profile.ps1`,
### which applies this profile for the Current User on All Hosts.
###
### If you want to apply the profile differently, see
### https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.3
###
# Create an alias for just (https://github.com/casey/just) named `j`
# that sets just's default shell to PowerShell.
Function justFunc { just --shell powershell.exe --shell-arg -c $args }
Set-Alias -Name j -Value justFunc
Tested on Windows 11.