Power Automate Desktop無償版をPowerShell (UI Automation)で自動実行させる方法 タスクスケジューラーなどで使うことができます

バージョンアップで画面が変わる場合があるので自分で修正できる方がお使いください
バッチファイルフローの名前をパラメーターとして与えたい場合は4行目以降をパワーシェルのファイルとして保存して実行してください powershe ...
PowerShell でRPA(UI Automation)を行う(UI Automation PowerShell Extensionsを使用しない)

電卓とメモ帳のサンプルです
inspect要素を調べるツール
“C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\inspect ...
日本の祝日を表示するパワーシェル

コードPowerShell -Command "& (Invoke-Expression -Command ('{' + (((Get-Content %~f0 )) | Out-String )+ '}& ...
バッチファイルの中でPowershellスクリプトから日付を取得する方法

バッチファイル@echo offFOR/F "usebackq" %%a IN (`powershell -command "Write-Output $((Get-Date).AddDays(-1)).ToS ...
PowerShell パワーシェルとMailKitを使ってメールを送信する

インストール
管理者権限でパワーシェルを起動してください
Install-Package -Name Portable.BouncyCastle -Source -Name MailKit -Source -SkipDepen ...Web ページを開いてページをテキストファイルに保存するバッチファイルとパワーシェル

バッチファイル:: バッチファイル用スクリプトset URL=" output="page_content.txt"start msedge.exe %URL%timeout/t 10echo MouseCli ...
PowerShellでPNGファイルをBMPファイルに変換するには

ImageMagickで作成した BMP ファイルがautotraceで読めないことが分かりで作成することにしました
Error reading BMP file header
画像の形式を変えることができるの ...
パワーシェルを使ってMicrosoft Excel などのオフィスのファイルの作成者を変更するバッチファイル

バッチファイル
壊してしまう可能性もあるため元のファイルは保存しておいてください
echo e %*:: @pwsh -NoProfile -Command "& (Invoke-Expression -Command ...日本語を含むShift-JISのファイルを読んでコンソールに出力 powershell7

新しいバージョンのパワーシェル は UTF 8 で読み込むので日本語で扱うには難しいです
バッチファイルShift-JISでバッチファイルを保存してください
echo e %*::@pwsh -NoProfile - ...パワーシェルで文字をつなげて3文字の文字を作る

ららら ららり ららる らられ ららろらりら らりり らりる らりれ らりろらるら らるり らるる らるれ らるろられら られり られる られれ られろらろら らろり らろる らろれ らろろりらら りらり りらる りられ りらろりりら りり ...