[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-572383-105":53,"doc-detail-572383-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","powershell-cheat-sheet-commands-parameters-and-data-handling","PowerShell Cheat Sheet - Commands, Parameters, and Data Handling","","PowerShell Cheat Sheet provides a compact reference for daily shell work: importing, exporting, and converting formats (CliXML, XML, CSV/HTML), command and pipeline usage, and common editing/navigation shortcuts in the command line. It summarizes flow control with if/elseif/else and loops, covers functions’ parameters such as -Confirm and -WhatIf, and explains writing comments and escaping characters. It also includes variable syntax, operators, arrays and objects, and practical cmdlets for object inspection, filtering, sorting, job control, and output handling.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":51,"@type":70,"position":76},"https://docshare.wps.com/template/general/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/powershell-cheat-sheet-commands-parameters-and-data-handling/572383/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/powershell-cheat-sheet-commands-parameters-and-data-handling/572383.png","ImageObject",442,249,{"name":88,"@type":89},"Mabel","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-23","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",7,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"How do I export or import PowerShell data using CliXML and convert formats like CSV or HTML?","Question",{"text":109,"@type":110},"Use Export-CliXML and Import-CliXML for CliXML, and ConvertTo-CSV/ConvertFrom-CSV for CSV. ConvertTo-XML and ConvertTo-HTML are also listed for XML and HTML conversions.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"What flow-control constructs are included in the cheat sheet?",{"text":114,"@type":110},"It lists if/elseif/else and while() loops. It also provides foreach-style examples for iterating items.",{"name":116,"@type":107,"acceptedAnswer":117},"How can I preview or confirm actions before they run in PowerShell?",{"text":118,"@type":110},"The cheat sheet references -WhatIf to display what a command would do, and -Confirm to prompt whether to take action.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},572383,1792115091,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":50,"category_name":51,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":9,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":4},7971474920318,"https://ap-avatar.wpscdn.com/avatar/74000ee537e6b0ca360?x-image-process=image/resize,m_fixed,w_180,h_180&k=1788430171632181674","PowerShell Cheat Sheet Import, Export, Convert  \nCmdlet Functions Parameter  \nAlias Scripts Applications Pipelines  \nCtrl+c Left/right Ctrl+left/right Home / End Up/down Insert  \nF7 Tab / Shift-Tab  \nCommands built into shell written in . NET Commands written in PowerShell language Argument to a Cmdlet/Function/Script Shortcut for a Cmdlet or Function  \nText ﬁ [les with .ps1](les with .ps1) extension  \nExisting windows programs  \nPass objects Get-process word | Stop-Process Interrupt current command  \nNavigate editing cursor  \nNavigate a word at a time  \nEnd Move to start / end of line  \nMove up and down through history Toggles between insert/overwrite mode Command history in a window  \nCommand line completion  \nExport-CliXML ConvertTo-XML Export-CSV ConvertTo-CSV  \nImport-CliXML ConvertTo-HTML Import-CSV ConvertFrom-CSV  \nFlow Control  \nIf(){} Elseif(){ } Else{ } while(){}  \nFor($i=0; $i-lt 10; $i++){} Foreach($ﬁle in dir C:\\){$ﬁ [le.name}](le.name})[ ](le.name})[1..10 | foreach{$_}](1..10 | foreach{$_})  \nComments, Escape Characters  \n\\#Comment \u003C\\#comment\\#>\"`\"test`\"\"  \n`t `n `  \nComment Multiline Comment Escape char `  \nTab New line Line continue  \nVariables  \n$var = \"string\"  \n$a,$b = 0 or $a,$b = 'a','b'$a,$b = $b,$a $var=[int]5  \nAssign variable  \nAssign multiple variables Flip variables  \nStrongly typed variable  \n-Conﬁrm  \n-WhatIf  \nParameters  \nPrompt whether to take action Displays what command would do  \nCommon cmdlets  \ncd, chdir, sl cat, gc, type ac  \nsc copy, cp, cpi  \ndel, erase, rd, ri, rm, rmdir mi, move, mv si  \nni  \nsleepsajb compare, diﬀ  \ngroup curl, iwr, wget  \nmeasure nal rvparujb set, sv shcm sortsasv  \nsaps, startsujb  \nwjb?, where echo, write  \nSet-Location Get-Content Add-Content Set-Content Copy-Item Remove-Item Move-Item Set-Item New-Item  \nStart-Sleep  \nStart-Job Compare-Object Group-Object Invoke-WebRequest Measure-Object New-Alias  \nResolve-Path  \nResume-Job Set-Variable Show-Command Sort-Object Start-Service  \nStart-Process Suspend-Job Wait-Job Where-Object Write-Output  \nCommon Aliases  \ngcm  \nforeach,% sort where, ?  \ndiﬀ, comparedir, ls, gci gi  \ncopy, cp, cpi  \nmove, mv, midel, rmrni, ren fFt  \nﬂ  \ngcim  \ncat, gc, typesc  \nh, history, ghyihy, r  \ngp  \nsp  \npwd, gl gm  \nsls  \ncd, chdir, sl cls, clear  \nGet-Command Foreach-Object Sort-Object Where-Object Compare-Object Get-ChildItem  \nGet-Item Copy-Item Move-Item Remove-Item  \nRename-Item Format-Table  \nFormat-List  \nGet-CimInstance Get-Content Set-Content Get-History Invoke-History Get-ItemProperty Set-ItemProperty Get-Location  \nGet-Member Select-String  \nSet-Location Clear-Host  \nArrays Objects  \nHelp  \nGet-Command  \nGet-Command-Module RGHS Get-Command Get-p* Get-help get-process  \nGet-Process | Get-Member Get-Process| format-list-properties *  \nAssignment, Logical, Comparison  \nGet all commands  \nGet all commands in RGHS module Get all commands starting with get-p Get help for command  \nGet members of the object  \nGet-Process as list with all properties  \n=, +=, -=, ++,---and, -or, -not,!  \n-eq, -ne  \n-gt, -ge  \n-lt, -le  \n-replace  \n-match, -notmatch  \n-like, -notlike  \n-contains, -notcontains  \n-in, -notin  \nAssign values to variable Connect expressions / statements Equal, not equal  \nGreater than, greater than or equal Less than, less than or equal“Hi” -replace“H”,“P”  \nRegular expression match Wildcard matching  \nCheck if value in array  \nReverse of contains, notcontains.  \n$arr = \"a\", \"b\" Array of strings  \n$arr = @() Empty array $arr[5] Sixth array element  \n$arr[-3..-1] Last three array elements  \n$arr[1,4+6 ..9] Elements at index 1,4, 6-9 $arr[1] += 200 Add to array item value $z = $arA + $arB Two arrays into single array  \n[pscustomobject]@{x=1;z=2} Create custom object (Get-Date).Date Date property of object  \nWriting output and reading  \nSet-ExecutionPolicy-ExecutionPolicy.\"\\\\c-is-ts-91\\c$\\scripts\\[script.ps1](script.ps1)”&\"\\\\c-is-ts-91\\c$\\scripts\\[script.ps1](script.ps1)\".\\[Script.ps1](Script.ps1)  \n[$pro]($pro)ﬁ [le](le)  \nBy","cbCaiqd16FNxCKTQ","https://ap.wps.com/l/cbCaiqd16FNxCKTQ","pdf",55500,"English","# Import, Export, Convert\n## Cmdlet Functions, Aliases, Scripts, Pipelines\n# Editing and Navigation\n## History, Completion, Shortcuts\n# Export-CliXML and Import-CliXML\n## Export-CSV/ConvertTo-CSV and Import-CSV/ConvertFrom-CSV\n# Flow Control\n## If/Else and Loops\n# Comments and Escape Characters\n# Variables and Parameters\n## -Confirm and -WhatIf\n# Common Cmdlets and Aliases\n# Operators and Expressions\n## Comparison, Regex, Wildcards, Arrays\n# Objects, Arrays, Output and Reading\n## pscustomobject, Get-Member, Formatting\n# Scripts and Execution\n## Set-ExecutionPolicy and Script Invocation","[{\"question\":\"How do I export or import PowerShell data using CliXML and convert formats like CSV or HTML?\",\"answer\":\"Use Export-CliXML and Import-CliXML for CliXML, and ConvertTo-CSV/ConvertFrom-CSV for CSV. ConvertTo-XML and ConvertTo-HTML are also listed for XML and HTML conversions.\"},{\"question\":\"What flow-control constructs are included in the cheat sheet?\",\"answer\":\"It lists if/elseif/else and while() loops. It also provides foreach-style examples for iterating items.\"},{\"question\":\"How can I preview or confirm actions before they run in PowerShell?\",\"answer\":\"The cheat sheet references -WhatIf to display what a command would do, and -Confirm to prompt whether to take action.\"}]","PowerShell Cheat Sheet - Commands, Parameters, and Data Handling | PDF",1791927091]