1. Check for `npx` availability and prompt user to install Node.js/npm if missing.
2. Open the target webpage using `$PWCLI open <url>`.
3. Take a snapshot of the page using `$PWCLI snapshot` to establish element references.
4. Interact with elements using commands like `$PWCLI click <element_ref>`, `$PWCLI fill <element_ref> <value>`, and `$PWCLI press <key>`.
5. Re-snapshot after navigation or significant UI changes.
6. Capture screenshots or traces as needed using `$PWCLI screenshot` or `$PWCLI tracing-start`/`$PWCLI tracing-stop`.
7. Repeat steps 3-6 as necessary to complete the desired workflow.