Well, now you can. PSThar is an Abiathar extension that provides a single tool (of the same name) to host a PowerShell runspace in the Abiathar process. You have access to everything that extensions have, without needing to compile anything. You can fiddle with internals if necessary, but be warned that it's possible to corrupt the project state with injudicious use of those abilities.
It presents a simple text field and a results view:
Type as many lines of script as you like, hit Run Script (or do Shift+Enter), and you'll see the output in the lower pane. You can switch the view to see other types of feedback, like errors and warnings.
The $Abiathar variable is set to the state manager, the same one you get from the Abiathar API. $CurLevel is the level wrapper for the currently visible level. There are a few cmdlets that take care of some of the trickier bookkeeping for you:
- Get-LevelTile: get the tile ID at a certain position, from either a level wrapper or a level ID
- Set-LevelTile: set the tile ID at a certain position
- Get-Level: get all the levels, or just one by name or ID
- Get-TileProperties: get the tileinfo of a tile by its ID
- Set-TileProperties: alter the tileinfo of a tile
- Get-SelectedTile: get the currently selected tile for a plane
- Set-SelectedTile: set the selected tile for a plane
To use, drop the AEX next to Abiathar. You might have to "unblock" the downloaded file in its properties window first, depending on your browser.