PowerShellコマンドレットとスクリプトだけであらゆる処理を簡単に実行できればいいのですが、実際の運用では、従来型のWindowsアプリケーションやコマンドプロンプト用のプログラム(コマンド)と組み合わせて使う方が効率がよい場合が少なくありません。
前々回に紹介したMicrosoft Edge WebDriverの起動処理をスクリプト用に整えていく。まず、起動処理を始める前に不要なプロセスの終了処理を走らせる。 webdriver_edge_stop.ps1 PowerShellからSelenium経由でWebDriverを使うことになるので、PowerShell Seleinumモジュールが必要だ。
PowerShell can do far more than most users realize. Explore 10 hidden capabilities that save time, improve reporting, and supercharge your workflow.