AppDomainPoshRunner
Powershell Runner that runs PowerShell scripts in a separate appdomain.
Install / Use
/learn @zippy1981/AppDomainPoshRunnerREADME
What is ADPR?

AppDomainPoshRunner, or ADPS for short, is a library and executable for running PowerShell scripts in a separate appdomain. Its most common form is the standalone executable poshrunner.exe.
Usage examples
Included in the zip file is AppDomainPoshRunner.SecondAppDomain.ps1, so you can run these examples by unzipping the files, opening a command prompt, and cd-ing to the directory you unzipped the files to
REM run AppDomainPoshRunner.SecondAppDomain.ps1 and write output to the console
poshrunner -f AppDomainPoshRunner.SecondAppDomain.ps1
REM run AppDomainPoshRunner.SecondAppDomain.ps1 and write output to poshrunner.log
poshrunner -f AppDomainPoshRunner.SecondAppDomain.ps1 --log4netConfigType=File
Why use ADPR?
Here are some compelling features:
- A script can have its own app.config separate from powershell.exe.config
- All output is written to a custom implementation of log4Net.ILog. This means:
- You can send script output to a log file instead of (or in addition to) the console.
- You can have
Write-Errorwrite a message to the event log. - You can send script output to mongodb with Log4Mongo
- Much much more
How do I download ADPR
The recommended way to install poshrunner.exe is the chocolatey package.
Since GitHub no longer allows downloads, I have created a sourceforge.net project for PoshRunner. Here is a direct link to the latest download.
What is the status of ADPR
ADPR is a little rough around the edges, but quite useable. Because ADPR implements PSHost, the following cmdlets will run:
Write-Verbose 'Verbose Message';
Write-Debug 'Debug Message';
Write-Host 'Host Message';
Write-Host -ForegroundColor green "Green Text"
Write-Warning 'Warning Message';
Write-Error 'Error Message'
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
