Title says it all. I have an executable script in the /etc/network/if-up.d/ folder. If I run sudo /etc/network/ifup.d/myscript it runs just fine, but...
I have no experience in what you are doing. I am trying to understand the process. I am guessing that you use WinPE to carry out bullet points 2 - 5....