How can I run a PowerShell script inside Windmill?
1. Install PowerShell if not installed (see snippet below)
1. Store PowerShell script in Windmill variable
1. Retrieve variable value and write to file
1. Execute script
which pwsh > /dev/null
if [ $? -ne 0 ]
then
echo 'Downloading PowerShell package'
export DOWNLOAD_URL='https://github.com/PowerShell/PowerShell/releases/download/v7.3.5/powershell_7.3.5-1.deb_amd64.deb'
export FILE_NAME='pwsh.deb'
wget -O $FILE_NAME $DOWNLOAD_URL
dpkg --install $FILE_NAME
rm $FILE_NAME
ficurl -s -H "Authorization: Bearer $WM_TOKEN" \
"$BASE_INTERNAL_URL/api/w/$WM_WORKSPACE/variables/get/u/trevor/aws_s3_delete_bucket" \
| jq -r .value > script.ps1pwsh -File script.ps1There are now many ways to pass specific context to the AIChat for full-code apps. You can use the inspector in the preview, select lines in the editor, use @ mentions (which works with datatables, backend runnables and frontend runnables)
rubenf · 5d ago
**Full-code apps local development in alpha with datatables and any local AI agents ** For the most adventurous of you, in 1.599.0 you can build raw apps fully locally and windmill will take care of providing enough contexts for an agent like Claude to use datatables for storage when initialized with `wmill app new` . Use `wmill app dev` in the app folder to generate a live preview that will also allow you to apply datatables migrations generated by the agents to generate any datatable needed. Highly recommend setting datatable in your workspace settings for the full experience. Require both an updated CLI and windmill. https://www.youtube.com/watch?v=hNQCmpehE2w Merry christmas 🎅
rubenf · 7d ago
little surprise to discover on latest 🎅 It's early, it works especially well with AI and the new data tables. We're eager for your feedback
rubenf · 2w ago