skills/smithery.ai/powershell

powershell

SKILL.md

PowerShell Usage Guidelines

Java Environment Setup

Set up JAVA_HOME and update PATH for JDK 21 on each new PowerShell terminal session.

Prerequisites:

  • JDK 21 must be installed in $env:USERPROFILE\.jdks directory

Setup: Execute the following command once per terminal session:

$jdk21 = Get-ChildItem -Path "$env:USERPROFILE\.jdks" -Filter "*21*" | Sort-Object -Property Name -Descending | Select-Object -First 1
if ($null -ne $jdk21) {
    $env:JAVA_HOME = $jdk21.FullName
    $env:PATH = "$env:JAVA_HOME\bin;$env:PATH"
}
Installs
2
First Seen
Mar 21, 2026
powershell from smithery.ai