I added a note in the file where to change to keep PowerShell open.
; ----------------------------------------------------------
; Wait until PowerShell finishes.
; ----------------------------------------------------------
(vlax-invoke-method
shell
"Run"
cmd
0 ; <=== Change 0 to 1 if you want PowerShell to stay open.
:vlax-true
)
(vlax-release-object shell)
)
)
I was running some tests at work to see if there was a method to determine if PowerShell was blocked to give a message...
(princ "\nPowerShell access is blocked.")
(princ "\nPowerShell access is allowed."))
Right now all I get on the commandline is...
error: Automation Error. Description was not provided.
Though I had to get to some of my "paid to do" work done yesterday.
This is probably above my pay grade.
I just realized who the OP is, a big time Guru over at Autodesk forums and AUGI.