@TerryRitchie I think I've got it sorted out -- you're shelling out to command prompt and not terminal. Give this a run from the command line, like you did above, and see if you still get the error message:
(You can see the difference in the two methods above with command prompt. The first tosses the error like you're experiencing. The second runs with no issues.
)
so the change with the code I've been sharing should be just to make certain to add that "cmd" to the front of that shell statement, as we see above.
Code: (Select All)
cmd "Powershell Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts'|Out-File -Encoding Ascii 'temp_fontlist.txt'"(You can see the difference in the two methods above with command prompt. The first tosses the error like you're experiencing. The second runs with no issues.
)so the change with the code I've been sharing should be just to make certain to add that "cmd" to the front of that shell statement, as we see above.


