SHARE
TWEET

Untitled

a guest Sep 17th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var exe = FindExePath("pwsh.exe");
  2. var fileInfo = new FileInfo(exe);
  3. var smaPath = Path.Combine(fileInfo.DirectoryName, "System.Management.Automation.dll");
  4.  
  5. Assembly.LoadFrom(smaPath);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top