Is it possible to have an application desktop shortcut, upon double-clicking to launch, run a ps1 script BEFORE opening the application?
All resources I find online are for creating shortcuts TO the Powershell script. I need the trigger to be the app desktop shortcut/icon, and run the script completely prior to opening the app. Possible? If so, can someone please describe what to use.
Why doesn’t launching the application from within the Powershell script solve your problem? That way the script runs before launching the application doesn’t it?
That’s what I was originally hoping to do along with simply adding the necessary extracted icon, but come to find out it wasn’t going to work anyway due to script running restrictions in my organization.
We are able to handle this through Group Policy, so this is no longer an issue. (whew)
Hey guys, along the same lines. How would I launch an application on my laptop within Powershell just as Kris alluded to above. For instance I have an RPA tool, Automation Anywhere and I would like to launch it. How can I accomplish this?