Need a help

Hi!

Currently I'm trying to create an update that executes a powershell script after the update is complete.

I would guess, this happens, cause wyBuild opens all files within the temporary folder with the default action registered in windows https://yapp.kim/mybkexperience/. And for a .ps1 file this is open in notepad..Due to the fact, that this doesn't work out of the box, I created a .cmd file that starts powershell like mentioned in this SO answer and added both files (.cmd and .ps1) to the temporary folder within wyBuild.

The .cmd file is marked to be executed and on the .ps1 I don't have any options. When I now run the update it executes the .cmd file, but afterwards it opens the .ps1 file in notepad.

So how can I prevent that wyBuild executes the default action for a file provided within the temporary folder or how can I execute a .ps1 file without that annoying side effect?

Thanks.

, edited

This is a googable problem / solution. Here's how to execute powershell scripts so that the default action is not loaded, but rather it's executed:

powershell -command .\Foo.ps1