(Get-Command foundry).path$mypath = $MyInvocation.MyCommand.Path
Write-Output "Script Path: $mypath"$foundryPath = (Get-Command foundry).path
netsh advfirewall firewall add rule name="Allow AIFoundry" dir=in action=allow program="$foundryPath" enable=yes